file/file-5.19-printf.dif

20 lines
485 B
Plaintext
Raw Normal View History

---
src/apprentice.c | 6 ++++++
1 file changed, 6 insertions(+)
--- src/apprentice.c
+++ src/apprentice.c 2019-02-21 06:39:25.249091320 +0000
@@ -2465,6 +2465,12 @@ check_format_type(const char *ptr, int t
ptr++;
if (*ptr == '#')
ptr++;
+ if (*ptr == ' ')
+ ptr++;
+ if (*ptr == '+')
+ ptr++;
+ if (*ptr == '\'')
+ ptr++;
#define CHECKLEN() do { \
for (len = cnt = 0; isdigit(CAST(unsigned char, *ptr)); ptr++, cnt++) \
len = len * 10 + (*ptr - '0'); \