aboutsummaryrefslogtreecommitdiff
path: root/lib/strdup.c
AgeCommit message (Collapse)Author
2012-11-17mem-include-scan: verify memory #includesDaniel Stenberg
If we use memory functions (malloc, free, strdup etc) in C sources in libcurl and we fail to include curl_memory.h or memdebug.h we either fail to properly support user-provided memory callbacks or the memory leak system of the test suite fails. After Ajit's report of a failure in the first category in http_proxy.c, I spotted a few in the second category as well. These problems are now tested for by test 1132 which runs a perl program that scans for and attempts to check that we use the correct include files if a memory related function is used in the source code. Reported by: Ajit Dhumale Bug: http://curl.haxx.se/mail/lib-2012-11/0125.html
2011-07-26stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.hYang Tse
2010-03-24remove the CVSish $Id$ linesDaniel Stenberg
2008-09-06remove unnecessary typecasting of malloc()Yang Tse
2008-02-06Fix problem in strdup replacement when dealing with absolutely huge strings.Yang Tse
2007-11-07if () => if()Daniel Stenberg
while () => while() and some other minor re-indentings
2007-05-01Use memcpy instead of strcpy to improve performance.Dan Fandrich
2006-07-17Return NULL if argument is NULL.Yang Tse
2006-07-11Moved strdup replacement from src/main.c into src/strdup.c so it's availableDan Fandrich
in libcurl as well, if necessary.