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:
stanley lieber 2012-03-01 08:32:05 -06:00
parent b7e38d0b19
commit 4ffaa215ab

View file

@ -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;
}