OSDN Git Service

_scanf.c: Implement 'm' modifier for 'c' and '[' conversions.
authorWill Newton <will.newton@imgtec.com>
Tue, 16 Oct 2012 10:54:39 +0000 (11:54 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 31 Oct 2012 14:22:15 +0000 (15:22 +0100)
commit3d45b959518c375d07766f1826783a7072e2d450
tree751197205d228bff5433faf5234193df453a2b41
parent1ca62f5d3c57825924e62f41614eda00d888bd62
_scanf.c: Implement 'm' modifier for 'c' and '[' conversions.

The current code implements the 'm' modifier only for 's'
conversions and would cause a segfault if it was used for 'c'
or '[' conversions. This patch extends the code to cover these
cases too.

Signed-off-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/stdio/_scanf.c