diff options
Diffstat (limited to 'sysutils/ups-nut/patches/patch-ac')
-rw-r--r-- | sysutils/ups-nut/patches/patch-ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/ups-nut/patches/patch-ac b/sysutils/ups-nut/patches/patch-ac new file mode 100644 index 00000000000..16286d5f35a --- /dev/null +++ b/sysutils/ups-nut/patches/patch-ac @@ -0,0 +1,18 @@ +$NetBSD: patch-ac,v 1.4 2002/07/03 11:57:13 lukem 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]); |