summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/doprnt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/doprnt.c b/src/doprnt.c
index bed9350f4a6..418601acb02 100644
--- a/src/doprnt.c
+++ b/src/doprnt.c
@@ -438,7 +438,9 @@ doprnt (char *buffer, ptrdiff_t bufsize, const char *format,
}
case '%':
- fmt--; /* Drop thru and this % will be treated as normal */
+ /* Treat this '%' as normal. */
+ fmt0 = fmt - 1;
+ break;
}
}