]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Specifying a printf conversion specifer as nl's separator string
authorJim Meyering <jim@meyering.net>
Mon, 14 Oct 2002 08:29:41 +0000 (08:29 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 14 Oct 2002 08:29:41 +0000 (08:29 +0000)
commitbad450db5d35d67cb426a49a66b45c6c041cd401
tree66ad62738a99f1f08b3b4397c602ce073d041f0a
parent8c11ff93d8019346b66cc88a09c742888b9d7c97
Specifying a printf conversion specifer as nl's separator string
could cause nl to segfault.

(build_print_fmt): Don't include separator string
in the printf format; it might contain `%'.
Use a better bound on the length of the print_fmt buffer.
(print_lineno): Print the separator here instead.
src/nl.c