diff options
Diffstat (limited to '')
| -rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ int main(int argc, char **argv) { for (int i = 0; i < argc; i++) n += strlen(*argv+i); - if ((str = malloc(n + 1)) == NULL) { + if ((str = malloc(n + 4 * argc + 1)) == NULL) { perror("main: malloc failed"); exit(EXIT_FAILURE); } |
