]> git.proxmox.com Git - mirror_iproute2.git/commit
lib/fs: Fix format string in find_fs_mount()
authorPhil Sutter <phil@nwl.cc>
Thu, 24 Aug 2017 09:51:46 +0000 (11:51 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Aug 2017 21:53:14 +0000 (14:53 -0700)
commiteab450789829e33a64dbd08dced3438d580d5179
treeadb1134f0642a1adc81c9ab6ee64211908471188
parent45c2ec9e95fef8eb6f0807d9a7e5f14c14313c7e
lib/fs: Fix format string in find_fs_mount()

A field width of 4096 allows fscanf() to store that amount of characters
into the given buffer, though that doesn't include the terminating NULL
byte. Decrease the value by one to leave space for it.

Signed-off-by: Phil Sutter <phil@nwl.cc>
lib/fs.c