diff options
author | Filippo Arcidiacono <filippo.arcidiacono@st.com> | 2010-02-03 07:14:18 -0500 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2010-02-03 16:31:47 +0100 |
commit | 23e2b7118e41ba78b4069510daae772540b49ebb (patch) | |
tree | 23f0c51ad5788a2ac78c748e5b4364299debfb1c /libc | |
parent | 80361b7c7421f4d7742e3a27b006ab9fe4420a32 (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')
-rw-r--r-- | 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 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; } |