mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-02-26 13:52:42 +08:00
Replace strcpy with g_strdup
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user