Loading lib/base64.c +5 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,11 @@ #include <string.h> #include "base64.h" /* The last #include file should be: */ #ifdef MALLOCDEBUG #include "memdebug.h" #endif static char base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; static int pos(char c) Loading lib/cookie.c +6 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,11 @@ Example set of cookies: #include "getdate.h" #include "strequal.h" /* The last #include file should be: */ #ifdef MALLOCDEBUG #include "memdebug.h" #endif /**************************************************************************** * * cookie_add() Loading Loading @@ -496,6 +501,7 @@ void cookie_cleanup(struct CookieInfo *c) free(co); co = next; } free(c); /* free the base struct as well */ } } lib/escape.c +5 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,11 @@ #include <stdlib.h> #include <string.h> /* The last #include file should be: */ #ifdef MALLOCDEBUG #include "memdebug.h" #endif char *curl_escape(char *string) { int alloc=strlen(string)+1; Loading lib/formdata.c +5 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,11 @@ #include "strequal.h" /* The last #include file should be: */ #ifdef MALLOCDEBUG #include "memdebug.h" #endif /* Length of the random boundary string. The risk of this being used in binary data is very close to zero, 64^32 makes 6277101735386680763835789423207666416102355444464034512896 Loading lib/ftp.c +5 −1 Original line number Diff line number Diff line Loading @@ -89,6 +89,10 @@ #ifdef KRB4 #include "security.h" #endif /* The last #include file should be: */ #ifdef MALLOCDEBUG #include "memdebug.h" #endif /* returns last node in linked list */ static struct curl_slist *slist_get_last(struct curl_slist *list) Loading Loading @@ -1178,7 +1182,7 @@ CURLcode _ftp(struct connectdata *conn) else { /* Set type to binary (unless specified ASCII) */ ftpsendf(data->firstsocket, conn, "TYPE %s", (data->bits.ftp_list_only)?"A":"I"); (data->bits.ftp_ascii)?"A":"I"); nread = GetLastResponse(data->firstsocket, buf, conn); if(nread < 0) Loading Loading
lib/base64.c +5 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,11 @@ #include <string.h> #include "base64.h" /* The last #include file should be: */ #ifdef MALLOCDEBUG #include "memdebug.h" #endif static char base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; static int pos(char c) Loading
lib/cookie.c +6 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,11 @@ Example set of cookies: #include "getdate.h" #include "strequal.h" /* The last #include file should be: */ #ifdef MALLOCDEBUG #include "memdebug.h" #endif /**************************************************************************** * * cookie_add() Loading Loading @@ -496,6 +501,7 @@ void cookie_cleanup(struct CookieInfo *c) free(co); co = next; } free(c); /* free the base struct as well */ } }
lib/escape.c +5 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,11 @@ #include <stdlib.h> #include <string.h> /* The last #include file should be: */ #ifdef MALLOCDEBUG #include "memdebug.h" #endif char *curl_escape(char *string) { int alloc=strlen(string)+1; Loading
lib/formdata.c +5 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,11 @@ #include "strequal.h" /* The last #include file should be: */ #ifdef MALLOCDEBUG #include "memdebug.h" #endif /* Length of the random boundary string. The risk of this being used in binary data is very close to zero, 64^32 makes 6277101735386680763835789423207666416102355444464034512896 Loading
lib/ftp.c +5 −1 Original line number Diff line number Diff line Loading @@ -89,6 +89,10 @@ #ifdef KRB4 #include "security.h" #endif /* The last #include file should be: */ #ifdef MALLOCDEBUG #include "memdebug.h" #endif /* returns last node in linked list */ static struct curl_slist *slist_get_last(struct curl_slist *list) Loading Loading @@ -1178,7 +1182,7 @@ CURLcode _ftp(struct connectdata *conn) else { /* Set type to binary (unless specified ASCII) */ ftpsendf(data->firstsocket, conn, "TYPE %s", (data->bits.ftp_list_only)?"A":"I"); (data->bits.ftp_ascii)?"A":"I"); nread = GetLastResponse(data->firstsocket, buf, conn); if(nread < 0) Loading