[git commit master] libc: Fix l64a to return the correct buffer pointer
Filippo Arcidiacono
filippo.arcidiacono at st.com
Fri Apr 23 14:31:55 UTC 2010
commit: http://git.uclibc.org/uClibc/commit/?id=8a32a32317902c09d86ad4e310828bbf3af1bf30
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
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 <filippo.arcidiacono at st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>
---
libc/stdlib/l64a.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libc/stdlib/l64a.c b/libc/stdlib/l64a.c
index 5a1dc13..1f0dfb7 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;
}
--
1.6.3.3
More information about the uClibc-cvs
mailing list