SHA256
1
0
forked from pool/file
file/file-5.19-printf.dif

20 lines
479 B
Plaintext

---
src/apprentice.c | 6 ++++++
1 file changed, 6 insertions(+)
--- src/apprentice.c
+++ src/apprentice.c 2018-06-12 14:15:19.109042630 +0000
@@ -2417,6 +2417,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((unsigned char)*ptr); ptr++, cnt++) \
len = len * 10 + (*ptr - '0'); \