Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-7-0] src/usr.bin/printf

Module Name:    src
Committed By:   martin
Date:           Thu Jul 12 14:59:30 UTC 2018

Modified Files:
        src/usr.bin/printf [netbsd-7-0]: printf.c

Log Message:
Pull up following revision(s) (requested by kre in ticket #1619):

        usr.bin/printf/printf.c: revision 1.37-1.39

fix some error handling.

>From leot@ on tech-userlevel:
Avoid running off into oblivion when a format string,
or arg to a %b conversion ends in an unescaped backslash.

Patch from Leo slightly modified by me.

Avoid printing error messages twice when an invalid
escape sequence (\ sequence) is present in an arg to a %b

To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.36.8.1 src/usr.bin/printf/printf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index