From 85c87fe267c790c2d782315d632553d9b71ff176 Mon Sep 17 00:00:00 2001 From: axel Date: Tue, 17 Jan 2006 01:04:24 +1000 Subject: [PATCH] Make string formating functions correctly handle %%. Thanks to Hiroshi Sakurai darcs-hash:20060116150424-ac50b-0025006d1821da25ad131cca61e879d724694934.gz --- wutil.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wutil.c b/wutil.c index 897aef41b..dceac9c99 100644 --- a/wutil.c +++ b/wutil.c @@ -585,6 +585,12 @@ static int vgwprintf( void (*writer)(wchar_t), *n = count; break; } + case L'%': + { + writer('%'); + count++; + break; + } default: debug( 0, L"Unknown switch %lc in string %ls\n", *filter, filter_org ); // exit(1);