Ticket #20902: patch-avoid-builtin-strndup.diff
File patch-avoid-builtin-strndup.diff, 550 bytes (added by kiwi.2008@…, 15 years ago) |
---|
-
src/hosts.c
old new 125 125 int dcc_compare_container(const void *a, const void *b); 126 126 127 127 128 #if ndefHAVE_STRNDUP128 #if !HAVE_STRNDUP 129 129 /** 130 130 * Copy at most @p size characters from @p src, plus a terminating nul. 131 131 * 132 132 * Really this needs to be in util.c, but it's only used here. 133 133 **/ 134 static char *strndup(const char *src, size_t size) 134 char *strndup(const char *src, size_t size); 135 char *strndup(const char *src, size_t size) 135 136 { 136 137 char *dst; 137 138