Bläddra i källkod

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>
Filippo Arcidiacono 16 år sedan
förälder
incheckning
23e2b7118e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      libc/stdlib/l64a.c

+ 1 - 1
libc/stdlib/l64a.c

@@ -52,5 +52,5 @@ char * l64a (long int n)
     }
   *p = '\0';
 
-  return p;
+  return result;
 }