Displaying 1 result from an estimated 1 matches for "luoyi".
Did you mean:
luoqi
2007 Mar 30
0
strndup.c bug ?
luoyi at test:~/src/klibc.orig/klibc-1.5/usr/klibc$ diff
-u strndup.c strndup.c.new
--- strndup.c 2007-03-04 09:52:10.000000000 +0800
+++ strndup.c.new 2007-03-29 18:26:29.000000000
+0800
@@ -10,8 +10,9 @@
int l = n > strlen(s) ? strlen(s) + 1 : n + 1;
char *d = malloc(l)...