summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
authorFilippo Arcidiacono <filippo.arcidiacono@st.com>2010-02-03 07:14:18 -0500
committerCarmelo Amoroso <carmelo.amoroso@st.com>2010-02-03 16:05:57 +0100
commit8a32a32317902c09d86ad4e310828bbf3af1bf30 (patch)
tree43d2280b6b2d46859c8bf84f143458ab200eb111 /libc/stdlib
parentf50a678f473e44c405e51af988a57daf88ea2f27 (diff)
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 <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/l64a.c2
1 files changed, 1 insertions, 1 deletions
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;
}