commit | 6b7971805c53e49892d175e59b827873090fff7a | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Sat Jul 12 09:32:38 2008 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Sat Jul 12 09:32:38 2008 +0000 |
tree | fe6e9270971b8bdd97fae204f0ed7d2957f9ed20 | |
parent | a46dd89e9451ec73a4df54427110cdfc28d8b031 [diff] [blame] |
fuser: a bit of safety in scanf
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 @@ 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