diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2016-08-17 22:15:09 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2016-08-17 22:15:09 +0000 |
commit | 73b893d82dd185187f65f024c84d3a2ad7cf9d62 (patch) | |
tree | 144e5e0f1a39d38d952d85cd6845e00cee3b0069 /lib/libc | |
parent | 08062e046951e62cbd85d8c047351696b7d1ff4d (diff) |
% is escaped with more %, not backslash.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 6 | ||||
-rw-r--r-- | lib/libc/stdio/vfwprintf.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 9865c1e4c72..1b497515500 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfprintf.c,v 1.74 2016/08/17 18:07:07 deraadt Exp $ */ +/* $OpenBSD: vfprintf.c,v 1.75 2016/08/17 22:15:08 tedu Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -862,7 +862,7 @@ fp_common: int save_errno = errno; syslog_r(LOG_CRIT | LOG_CONS, &sdata, - "vfprintf \%ls NULL in \"%s\"", fmt0); + "vfprintf %%ls NULL in \"%s\"", fmt0); errno = save_errno; cp = "(null)"; @@ -881,7 +881,7 @@ fp_common: int save_errno = errno; syslog_r(LOG_CRIT | LOG_CONS, &sdata, - "vfprintf \%s NULL in \"%s\"", fmt0); + "vfprintf %%s NULL in \"%s\"", fmt0); errno = save_errno; cp = "(null)"; diff --git a/lib/libc/stdio/vfwprintf.c b/lib/libc/stdio/vfwprintf.c index e65dddc0c74..f59a4d545db 100644 --- a/lib/libc/stdio/vfwprintf.c +++ b/lib/libc/stdio/vfwprintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfwprintf.c,v 1.16 2016/08/17 18:07:07 deraadt Exp $ */ +/* $OpenBSD: vfwprintf.c,v 1.17 2016/08/17 22:15:08 tedu Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -822,7 +822,7 @@ fp_common: int save_errno = errno; syslog_r(LOG_CRIT | LOG_CONS, &sdata, - "vfwprintf \%ls NULL in \"%s\"", fmt0); + "vfwprintf %%ls NULL in \"%s\"", fmt0); errno = save_errno; cp = L"(null)"; @@ -834,7 +834,7 @@ fp_common: int save_errno = errno; syslog_r(LOG_CRIT | LOG_CONS, &sdata, - "vfwprintf \%s NULL in \"%s\"", fmt0); + "vfwprintf %%s NULL in \"%s\"", fmt0); errno = save_errno; mbsarg = "(null)"; |