]> git.ipfire.org Git - thirdparty/util-linux.git/commit
utmpdump: fixes based on static analysis [cppcheck]
authorSami Kerola <kerolasa@iki.fi>
Sun, 8 Jul 2012 19:03:14 +0000 (21:03 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 10 Jul 2012 06:56:22 +0000 (08:56 +0200)
commite31926b4434a4df877745039809705361d1c79e8
tree973aa0c66b9a9c4f963506214f4a5a8357c3572e
parent657d9adb71ed50275b1ed2a0d4e966032db5ba97
utmpdump: fixes based on static analysis [cppcheck]

[utmpdump.c:82]: (style) The function 'unspace' is never used
[utmpdump.c:131]: (style) The scope of the variable 't' can be reduced
[utmpdump.c:167]: (warning) scanf without field width limits can crash with huge input data

[kzak@redhat.com: - don't use scanf field width limits for integers]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/utmpdump.c