]> git.pld-linux.org Git - packages/httping.git/blame - httping-strndup.patch
- updated to 1.5.7
[packages/httping.git] / httping-strndup.patch
CommitLineData
779dfba2 1diff -burNp httping-1.4.1/str.c httping-1.4.1-dud/str.c
2--- httping-1.4.1/str.c 2010-01-10 21:35:22.000000000 +0100
3+++ httping-1.4.1-dud/str.c 2010-03-11 23:54:21.986538283 +0100
4@@ -18,14 +18,3 @@
5 #include "mem.h"
6 #include "utils.h"
7
8-#ifndef _GNU_SOURCE
9-char *strndup(char *in, int size)
10-{
11- char *out = mymalloc(size + 1, "strndup");
12-
13- memcpy(out, in, size);
14- out[size] = 0x00;
15-
16- return out;
17-}
18-#endif
19diff -burNp httping-1.4.1/str.h httping-1.4.1-dud/str.h
20--- httping-1.4.1/str.h 2010-01-10 21:35:22.000000000 +0100
21+++ httping-1.4.1-dud/str.h 2010-03-11 23:53:46.336542947 +0100
22@@ -14,7 +14,3 @@
23 */
24
25 #include <string.h>
26-
27-#ifndef _GNU_SOURCE
28-char *strndup(char *in, int size);
29-#endif
This page took 0.053469 seconds and 4 git commands to generate.