diff options
author | Hannes Eder <heder@google.com> | 2009-10-08 18:06:04 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-10-08 18:06:04 +0200 |
commit | 910d392806be7457f95aaab73e81abe20772bd05 (patch) | |
tree | 1ace5425e89105e01b4733ce76a9e6f73d5c0465 /qa | |
parent | eb1127e0f72274bdcdcf6fdef96f1cbac5d19f02 (diff) | |
download | conntrack-tools-910d392806be7457f95aaab73e81abe20772bd05.tar.gz conntrack-tools-910d392806be7457f95aaab73e81abe20772bd05.zip |
conntrack: use fscanf() instead of read() for showing counter
Read an integer right away with fscanf() instead of read()-ing to a
buffer, which was actually to small for the terminating '\0', and
atoi()-ing. Furthermore read() might not read enough, though unlikely
here.
Signed-off-by: Hannes Eder <heder@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'qa')
0 files changed, 0 insertions, 0 deletions