Commit a060cb1d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Merge branch 'static_analysis_bugs' into 'master'

Fix incorrect type in parser's realloc()

See merge request !1078
parents eb50a813 66ca0f9e
......@@ -128,7 +128,7 @@ static int parse_quoted_strings(const char *line, char ***result) {
word[nchar] = '\0';
if (count <= nwords) {
count += 1;
strings = (char **)realloc(strings, count * sizeof(char));
strings = (char **)realloc(strings, count * sizeof(char *));
}
strings[nwords] = (char *)malloc((strlen(word) + 1) * sizeof(char));
strcpy(strings[nwords], trim_both(word));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment