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:
parent
b0e742544b
commit
da900ca970
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user