aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 287de53..fd00a76 100644
--- a/src/main.c
+++ b/src/main.c
@@ -19,8 +19,9 @@ int main(int argc, char **argv) {
exit(EXIT_FAILURE);
}
- str = "[0] ";
- strcpy(str, argv[0]);
+ strcpy(str, "[0] ");
+ strcat(str, argv[0]);
+
for (int i = 1; i < argc; i++) {
char *tmp = NULL;