浏览代码

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 15 年之前
父节点
当前提交
8a32a32317
共有 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';
   *p = '\0';
 
 
-  return p;
+  return result;
 }
 }