diff options
author | Jay Freeman <saurik@saurik.com> | 2008-07-31 18:37:10 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-07-31 18:37:10 +0000 |
commit | f1bb91ecb9af51567cd2ebbc569b4a818a0ceac7 (patch) | |
tree | f9ad34affa0b796da6853094a73b201fe976d704 /data/weechat_/strndup.diff | |
parent | 3b366fcdf2ed67931d07b724174eb1552590b3d1 (diff) |
Added WeeChat for Fred.
git-svn-id: http://svn.telesphoreo.org/trunk@409 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/weechat_/strndup.diff')
-rw-r--r-- | data/weechat_/strndup.diff | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/data/weechat_/strndup.diff b/data/weechat_/strndup.diff new file mode 100644 index 000000000..a472caf53 --- /dev/null +++ b/data/weechat_/strndup.diff @@ -0,0 +1,33 @@ +diff -ru weechat-0.2.6/src/common/util.c weechat-0.2.6+iPhone/src/common/util.c +--- weechat-0.2.6/src/common/util.c 2007-08-31 13:24:45.000000000 +0000 ++++ weechat-0.2.6+iPhone/src/common/util.c 2008-07-31 03:29:17.000000000 +0000 +@@ -43,6 +43,7 @@ + + #include "weechat.h" + #include "utf8.h" ++#include "util.h" + #include "weeconfig.h" + + +@@ -52,7 +53,7 @@ + + #ifndef HAVE_STRNDUP + char * +-strndup (char *string, int length) ++strndup (const char *string, size_t length) + { + char *result; + +diff -ru weechat-0.2.6/src/common/util.h weechat-0.2.6+iPhone/src/common/util.h +--- weechat-0.2.6/src/common/util.h 2007-07-11 11:21:02.000000000 +0000 ++++ weechat-0.2.6+iPhone/src/common/util.h 2008-07-31 03:28:59.000000000 +0000 +@@ -21,7 +21,8 @@ + #define __WEECHAT_UTIL_H 1 + + #ifndef HAVE_STRNDUP +-extern char *strndup (char *, int); ++#undef strndup ++extern char *strndup (const char *, size_t); + #endif + extern void ascii_tolower (char *); + extern void ascii_toupper (char *); |