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:31:47 +0100
commit23e2b7118e41ba78b4069510daae772540b49ebb (patch)
tree23f0c51ad5788a2ac78c748e5b4364299debfb1c /libc/stdlib
parent80361b7c7421f4d7742e3a27b006ab9fe4420a32 (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;
}