diff options
author | Denis Vlasenko | 2008-07-12 09:32:38 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-07-12 09:32:38 +0000 |
commit | 6b7971805c53e49892d175e59b827873090fff7a (patch) | |
tree | fe6e9270971b8bdd97fae204f0ed7d2957f9ed20 | |
parent | a46dd89e9451ec73a4df54427110cdfc28d8b031 (diff) | |
download | busybox-6b7971805c53e49892d175e59b827873090fff7a.zip busybox-6b7971805c53e49892d175e59b827873090fff7a.tar.gz |
fuser: a bit of safety in scanf
-rw-r--r-- | procps/fuser.c | 2 |
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 |