Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > 45787beda864421fc2bfb5277d55bdb2 > files > 1

httping-1.3.1-1mdv2010.0.src.rpm

diff -p -up httping-1.3.0/str.c.strndup httping-1.3.0/str.c
--- httping-1.3.0/str.c.strndup	2009-02-18 16:32:43.000000000 +0100
+++ httping-1.3.0/str.c	2009-06-11 03:07:41.000000000 +0200
@@ -18,14 +18,3 @@
 #include "mem.h"
 #include "utils.h"
 
-#ifndef strndup
-char *strndup(char *in, int size)
-{
-	char *out = mymalloc(size + 1, "strndup");
-
-	memcpy(out, in, size);
-	out[size] = 0x00;
-
-	return out;
-}
-#endif
diff -p -up httping-1.3.0/str.h.strndup httping-1.3.0/str.h
--- httping-1.3.0/str.h.strndup	2009-02-18 16:32:43.000000000 +0100
+++ httping-1.3.0/str.h	2009-06-11 03:05:55.000000000 +0200
@@ -15,6 +15,3 @@
 
 #include <string.h>
 
-#ifndef strndup
-char *strndup(char *in, int size);
-#endif