diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2007-10-05 14:29:47 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2007-10-05 14:29:47 +0000 |
commit | 63eb2ad70423829314bc396c95a9053f4a001eca (patch) | |
tree | e9ba4938cc05c19e68bc11a1d0207635c085e986 /include/rpc | |
parent | ef79351c024045b58ccfe7d2e2b3958b47d296ad (diff) |
use strcspn instead of strchr to properly overwrite '\n' in fgets returned buffer
check if the first byte is NUL instead of invoking strlen()
with help of ray@ "Looks OK" millert@
Diffstat (limited to 'include/rpc')
0 files changed, 0 insertions, 0 deletions