This commit is contained in:
vanhauser-thc
2023-08-31 14:42:08 +02:00
parent c60431247e
commit 88ca5c7563

View File

@ -317,7 +317,7 @@ void parse_fsanitize(char *string) {
char *p, *ptr = string + strlen("-fsanitize=");
char *new = malloc(strlen(string) + 1);
char *tmp = malloc(strlen(ptr));
char *tmp = malloc(strlen(ptr) + 1);
u32 count = 0, len, ende = 0;
if (!new || !tmp) { FATAL("could not acquire memory"); }