diff options
author | Jim Meyering <meyering@redhat.com> | 2012-07-15 18:18:03 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-07-15 19:11:45 +0200 |
commit | ac00d23e1a90dc5a8cd0f6de0e61eb401d5089d5 (patch) | |
tree | e94876b4676c65ad8b8fa84d9f5d7320944ba5df /NEWS | |
parent | e380221333f4efd8d49b29b2690375c36eb90505 (diff) | |
download | coreutils-ac00d23e1a90dc5a8cd0f6de0e61eb401d5089d5.tar.xz |
pinky,who: fix bug in latest change
* src/system.h (stzncpy): New function.
* src/pinky.c (print_entry): Use stzncpy, not stpncpy.
The latter does not NUL-terminate. I assumed that strncpy was
the only function with such a horrible API. Today I learned that
stpncpy also may not NUL-terminate its result.
The bugs were introduced in commit v8.17-48-gf79263d.
* src/who.c (print_user): Likewise.
Thanks to Erik Auerswald for spotting my error.
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions