qi-fix-strncpy.patch

Mini strncpy patch was buggy.

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green authored and Andy Green committed 2008-11-28 10:16:38 +00:00
1 parent 2e2480ff21
commit 5dbdcda9b2
1 file changed
+3
+3
View File
@@ -59,6 +59,9 @@ char *strncpy(char *dest, const char *src, size_t n)
while (*src && n--)
*dest++ = *src++;
if (n)
*dest = '\0';
return dest_orig;
}