diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2012-03-01 08:32:05 -0600 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2012-03-01 08:32:05 -0600 |
commit | 4ffaa215abefb838e62ff80aad48ec53f412c766 (patch) | |
tree | 126d23c09f2f48c92e0c0ec442362be7a5eb4f02 /sys/src/cmd/paint.c | |
parent | b7e38d0b1989225bf8e24a1b50f8db221760b57e (diff) |
paint: cause 's' to prompt with the file name if paint is invoked with a file name as its argument
Diffstat (limited to 'sys/src/cmd/paint.c')
-rw-r--r-- | sys/src/cmd/paint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/paint.c b/sys/src/cmd/paint.c index f10000955..fa058d1e3 100644 --- a/sys/src/cmd/paint.c +++ b/sys/src/cmd/paint.c @@ -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; } |