diff options
author | 2007-02-19 20:01:12 +0000 | |
---|---|---|
committer | 2007-02-19 20:01:12 +0000 | |
commit | 999d1a1caedc76e50415b3022645de42429d72b8 (patch) | |
tree | 70d6d9a6c6226b0ef04991dce060d233d7ac090c /lib/libc | |
parent | from hubertf@netbsd: (diff) | |
download | wireguard-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