summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorray <ray@openbsd.org>2007-02-19 20:01:12 +0000
committerray <ray@openbsd.org>2007-02-19 20:01:12 +0000
commit999d1a1caedc76e50415b3022645de42429d72b8 (patch)
tree70d6d9a6c6226b0ef04991dce060d233d7ac090c /lib/libc
parentfrom hubertf@netbsd: (diff)
downloadwireguard-openbsd-999d1a1caedc76e50415b3022645de42429d72b8.tar.xz
wireguard-openbsd-999d1a1caedc76e50415b3022645de42429d72b8.zip
- Check for fgets failure.
- Pass sizeof(buf) to fgets. - Only print what was read. - Simplify error checking while printing bigrams. Inspired by diff from Charles Longeau <chl at tuxfamily dot org> long ago. OK millert@ and moritz@.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions