paint: cause 's' to prompt with the file name if paint is invoked with a file name as its argument
This commit is contained in:
parent
b7e38d0b19
commit
4ffaa215ab
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,8 @@ main(int argc, char *argv[])
|
|||
case 0:
|
||||
break;
|
||||
case 1:
|
||||
if(loadimg(argv[0]) < 0)
|
||||
strncpy(file, argv[0], sizeof(argv[0]));
|
||||
if(loadimg(file) < 0)
|
||||
sysfatal("%r");
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue