summaryrefslogtreecommitdiff
path: root/lib/strdup.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-11-07 10:55:25 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-11 10:03:48 +0100
commit0649433da53c7165f839e24e889e131e2894dd32 (patch)
tree7e516c1702fe87c09f190e5dc47ecd3a9bede1b8 /lib/strdup.h
parentcdfda3ee827da069f1871722278fd82e7cbb4194 (diff)
downloadcurl-0649433da53c7165f839e24e889e131e2894dd32.tar.gz
realloc: use Curl_saferealloc to avoid common mistakes
Discussed: https://curl.haxx.se/mail/lib-2016-11/0087.html
Diffstat (limited to 'lib/strdup.h')
-rw-r--r--lib/strdup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/strdup.h b/lib/strdup.h
index c74a3b730..ae3d5d011 100644
--- a/lib/strdup.h
+++ b/lib/strdup.h
@@ -27,5 +27,6 @@
extern char *curlx_strdup(const char *str);
#endif
void *Curl_memdup(const void *src, size_t buffer_length);
+void *Curl_saferealloc(void *ptr, size_t size);
#endif /* HEADER_CURL_STRDUP_H */