mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Replace strcpy with g_strdup
This commit is contained in:
parent
c10232fdf1
commit
658e91c2ae
@ -78,8 +78,7 @@ int main (int argc, char **argv) {
|
||||
line_break = 1;
|
||||
break;
|
||||
case 'd':
|
||||
delimiter = (char *) malloc(strlen(optarg)+1);
|
||||
strcpy(delimiter, optarg);
|
||||
delimiter = g_strdup(optarg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user