summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/ap/stdio/_IO_getc.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-05-09 15:10:39 -0700
committerOri Bernstein <ori@eigenstate.org>2020-05-09 15:10:39 -0700
commitbfc8cdfff5aba1da7ddef1c2ef7e1167f8dd2e8d (patch)
tree68860e9c2f3f89e26fb459995af324dae5829323 /sys/src/ape/lib/ap/stdio/_IO_getc.c
parent758edf2b1448bcc461bc2f99eeaabad1a077351d (diff)
fix '%[]' specifiers and '%n' (thanks phil9)
When a match() fails, we need to unget the character we tried to match against, rather than leaving it consumed. Also, we can't break out of a conversion before we reach the end of a format string, because things like the '%n' conversion do not consume anything, and should still be handled.
Diffstat (limited to 'sys/src/ape/lib/ap/stdio/_IO_getc.c')
0 files changed, 0 insertions, 0 deletions