blob: 567735ca3b32d43c83e5de133306fa6ceb7127bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-ac,v 1.5 2002/08/25 21:51:06 jlam Exp $
--- clients/upslog.c.orig Fri May 17 08:26:22 2002
+++ clients/upslog.c
@@ -180,6 +180,13 @@ void print_status(void)
continue;
}
+ /* if a %%, append % and start over */
+ if (logformat[i+1] == '%') {
+ snprintfcat(logbuffer, sizeof(logbuffer), "%%");
+ i++;
+ continue;
+ }
+
/* it must start with a % now - %<cmd>[ <arg>]%*/
cmd = xstrdup(&logformat[i+1]);
|