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

A message that is not in the archive (sent off-list or not yet received): 20091007162834.13930.14962.stgit@lb64

Pablo Neira Ayuso

author maintainer
#1 lore raw
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!