ref: 4ffaa215abefb838e62ff80aad48ec53f412c766
parent: b7e38d0b1989225bf8e24a1b50f8db221760b57e
author: stanley lieber <[email protected]>
date: Thu Mar 1 03:32:05 EST 2012
paint: cause 's' to prompt with the file name if paint is invoked with a file name as its argument
--- a/sys/src/cmd/paint.c
+++ b/sys/src/cmd/paint.c
@@ -73,7 +73,8 @@
case 0:
break;
case 1:
- if(loadimg(argv[0]) < 0)
+ strncpy(file, argv[0], sizeof(argv[0]));
+ if(loadimg(file) < 0)
sysfatal("%r");
break;
}