Re: Bug in _scanf.c

2013-04-04 Thread Pirmin Walthert
On 04/02/2013 02:43 PM, Will Newton wrote: On Fri, Mar 29, 2013 at 5:25 PM, Pirmin Walthert wrote: That's ok for me (as the most important thing is not to have a regression in the next release) but in fact the first of the following patches would have been enough to fix the bug. However the se

[PATCH 2/2] _scanf.c: fix a potential memory leak (in case of "m" modifier)

2013-04-04 Thread Pirmin Walthert
From: root This fixes a potential memory leak in case of "m" modifier set and (sc.width > 0). Signed-off-by: Pirmin Walthert --- libc/stdio/_scanf.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/stdio/_scanf.c b/libc/stdio/_scanf.c index fe33386..a7592b6 10064

[PATCH 1/2] _scanf.c: fix bug introduced with 'm' modifier patch

2013-04-04 Thread Pirmin Walthert
From: root Fixes a bug introduced with e567c399ff86d007d8c4586f0dd5e0ca61e283ca. As "i" is already used in a different loop, it needs to be reset. Signed-off-by: Pirmin Walthert --- libc/stdio/_scanf.c |1 + 1 file changed, 1 insertion(+) diff --git a/libc/stdio/_scanf.c b/libc/stdio/_sca