Skip to contentSkip to conversation

conntrack: use fscanf() instead of read() for showing counter

PATCH Pablo Neira Ayuso 1 participant 1 message Oct 8, 2009 1 message not in the archive netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#1 lore raw
In reply to a message not in the archive
Quoted 4 lines · Hannes Eder

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.

Also applied, thanks!