mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-11 09:29:51 +00:00
dos33: fix segfault when loading from disk image
probably broke this in recent file cleanups :(
This commit is contained in:
parent
e3d5d1e525
commit
1c021fa1b1
@ -1398,10 +1398,14 @@ int main(int argc, char **argv) {
|
||||
|
||||
/* get output filename */
|
||||
optind++;
|
||||
if (argc>=optind) {
|
||||
if (argc>optind) {
|
||||
if (debug) printf("Using %s for filename\n",
|
||||
local_filename);
|
||||
strncpy(local_filename,argv[optind],BUFSIZ);
|
||||
}
|
||||
else {
|
||||
if (debug) printf("Using %s for filename\n",
|
||||
apple_filename);
|
||||
strncpy(local_filename,apple_filename,30);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user