Replace strcpy with g_strdup

This commit is contained in:
Evan Miller
2020-12-28 22:29:19 -05:00
parent c10232fdf1
commit 658e91c2ae

View File

@@ -78,8 +78,7 @@ int main (int argc, char **argv) {
line_break = 1; line_break = 1;
break; break;
case 'd': case 'd':
delimiter = (char *) malloc(strlen(optarg)+1); delimiter = g_strdup(optarg);
strcpy(delimiter, optarg);
break; break;
} }
} }