From 8a32a32317902c09d86ad4e310828bbf3af1bf30 Mon Sep 17 00:00:00 2001 From: Filippo Arcidiacono Date: Wed, 3 Feb 2010 07:14:18 -0500 Subject: libc: Fix l64a to return the correct buffer pointer l64a was returning the pointer to the end of the internal buffer instead of the start. This caused an infinite loop in passwd application. Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso --- libc/stdlib/l64a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/stdlib/l64a.c') diff --git a/libc/stdlib/l64a.c b/libc/stdlib/l64a.c index 5a1dc13a6..1f0dfb7ac 100644 --- a/libc/stdlib/l64a.c +++ b/libc/stdlib/l64a.c @@ -52,5 +52,5 @@ char * l64a (long int n) } *p = '\0'; - return p; + return result; } -- cgit v1.2.3