1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

tool_formparse.c: fix possible use of non-null-terminated strings

This commit is contained in:
Marc Hoersken 2014-04-19 00:17:47 +02:00
parent b0e742544b
commit da900ca970

View File

@ -150,8 +150,8 @@ int formparse(struct OperationConfig *config,
build a linked list with the info */ build a linked list with the info */
char name[256]; char name[256];
char *contents = NULL; char *contents = NULL;
char type_major[128]; char type_major[128] = "";
char type_minor[128]; char type_minor[128] = "";
char *contp; char *contp;
const char *type = NULL; const char *type = NULL;
char *sep; char *sep;