]>
Commit | Line | Data |
---|---|---|
779dfba2 | 1 | diff -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 | |
19 | diff -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 |