summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfprintf.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2016-08-17 22:15:08 +0000
committertedu <tedu@openbsd.org>2016-08-17 22:15:08 +0000
commit1e29e77683c3ed1314184cdcfa91e9a6513a0e98 (patch)
treeee0f3e5c11d827a7753b86cd0a0282e81a0c8f31 /lib/libc/stdio/vfprintf.c
parentAdd HISTORY section. (diff)
downloadwireguard-openbsd-1e29e77683c3ed1314184cdcfa91e9a6513a0e98.tar.xz
wireguard-openbsd-1e29e77683c3ed1314184cdcfa91e9a6513a0e98.zip
% is escaped with more %, not backslash.
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
-rw-r--r--lib/libc/stdio/vfprintf.c6
1 files changed, 3 insertions, 3 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)";