ref: f6a9321a336a98a3472c4d4c5ab7585231547c06
parent: c02d71255330297d7b9bb1abf6f4fd5825a22ce3
author: stanley lieber <stanley.lieber@gmail.com>
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;
}
--
⑨