summaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenis Vlasenko2008-07-12 09:32:38 +0000
committerDenis Vlasenko2008-07-12 09:32:38 +0000
commit6b7971805c53e49892d175e59b827873090fff7a (patch)
treefe6e9270971b8bdd97fae204f0ed7d2957f9ed20 /procps
parenta46dd89e9451ec73a4df54427110cdfc28d8b031 (diff)
downloadbusybox-6b7971805c53e49892d175e59b827873090fff7a.zip
busybox-6b7971805c53e49892d175e59b827873090fff7a.tar.gz
fuser: a bit of safety in scanf
Diffstat (limited to 'procps')
-rw-r--r--procps/fuser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/fuser.c b/procps/fuser.c
index d8005b5..ca7c7e2 100644
--- a/procps/fuser.c
+++ b/procps/fuser.c
@@ -114,7 +114,7 @@ static inode_list *scan_proc_net(const char *proto,
return ilist;
while (fgets(line, MAX_LINE, f)) {
- char addr[64];
+ char addr[68];
if (sscanf(line, "%*d: %64[0-9A-Fa-f]:%x %*x:%*x %*x %*x:%*x "
"%*x:%*x %*x %*d %*d %llu",
addr, &tmp_port, &uint64_inode) == 3