packages: httping/httping-strndup.patch (NEW) - http://bugs.debian.org/cgi-...

duddits duddits at pld-linux.org
Thu Mar 11 23:59:35 CET 2010


Author: duddits                      Date: Thu Mar 11 22:59:34 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=552901

---- Files affected:
packages/httping:
   httping-strndup.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/httping/httping-strndup.patch
diff -u /dev/null packages/httping/httping-strndup.patch:1.1
--- /dev/null	Thu Mar 11 23:59:35 2010
+++ packages/httping/httping-strndup.patch	Thu Mar 11 23:59:29 2010
@@ -0,0 +1,29 @@
+diff -burNp httping-1.4.1/str.c httping-1.4.1-dud/str.c
+--- httping-1.4.1/str.c	2010-01-10 21:35:22.000000000 +0100
++++ httping-1.4.1-dud/str.c	2010-03-11 23:54:21.986538283 +0100
+@@ -18,14 +18,3 @@
+ #include "mem.h"
+ #include "utils.h"
+ 
+-#ifndef _GNU_SOURCE
+-char *strndup(char *in, int size)
+-{
+-	char *out = mymalloc(size + 1, "strndup");
+-
+-	memcpy(out, in, size);
+-	out[size] = 0x00;
+-
+-	return out;
+-}
+-#endif
+diff -burNp httping-1.4.1/str.h httping-1.4.1-dud/str.h
+--- httping-1.4.1/str.h	2010-01-10 21:35:22.000000000 +0100
++++ httping-1.4.1-dud/str.h	2010-03-11 23:53:46.336542947 +0100
+@@ -14,7 +14,3 @@
+ */
+ 
+ #include <string.h>
+-
+-#ifndef _GNU_SOURCE
+-char *strndup(char *in, int size);
+-#endif
================================================================


More information about the pld-cvs-commit mailing list