Skip to content

Commit

Permalink
silence bogus gcc 10.3 warning about truncating strings
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed Aug 13, 2021
1 parent 975dfd8 commit b4c2329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/m_misc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ void M_StringAdd(char **dest, const char *src)
}
else
{
size = strlen(src) + 1;
size = strlen(src) + 2;
*dest = malloc(size);
M_StringCopy(*dest, src, size);
}
Expand Down

0 comments on commit b4c2329

Please sign in to comment.