Quellcode durchsuchen

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 vor 16 Jahren
Ursprung
Commit
23e2b7118e
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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;
 }