diff options
author | Dave Reisner | 2012-05-13 21:14:49 +0200 |
---|---|---|
committer | Karel Zak | 2012-05-15 11:32:24 +0200 |
commit | ea178007eb63a528f27805c04b5246519b5ef61a (patch) | |
tree | 57693924a60f17ba72f1113098c27e25ec43c534 /term-utils/agetty.c | |
parent | rev: mention tac(1) in 'SEE ALSO' man page section (diff) | |
download | kernel-qcow2-util-linux-ea178007eb63a528f27805c04b5246519b5ef61a.tar.gz kernel-qcow2-util-linux-ea178007eb63a528f27805c04b5246519b5ef61a.tar.xz kernel-qcow2-util-linux-ea178007eb63a528f27805c04b5246519b5ef61a.zip |
lib/mangle: check for end of string on every iteration
Checking for the null byte at the end of the string only conditionally
leads to segfaults, evidenced by mount helpers crashing on writes to
/run/mount/utab. Simply check for the null on each iteration, and append
a null byte to the mangled string before breaking.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'term-utils/agetty.c')
0 files changed, 0 insertions, 0 deletions