mirror of
https://github.com/curl/curl.git
synced 2025-03-31 16:00:35 +08: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 */
|
||||
char name[256];
|
||||
char *contents = NULL;
|
||||
char type_major[128];
|
||||
char type_minor[128];
|
||||
char type_major[128] = "";
|
||||
char type_minor[128] = "";
|
||||
char *contp;
|
||||
const char *type = NULL;
|
||||
char *sep;
|
||||
|
Loading…
x
Reference in New Issue
Block a user