瀏覽代碼

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 年之前
父節點
當前提交
23e2b7118e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
 }