diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2012-07-09 21:19:03 -0500 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2012-07-09 21:19:03 -0500 |
commit | af047b58b4f5dd9af244222f694fa04d41399ff7 (patch) | |
tree | 9e04eece3f7ae430bc975a1be3e07050b8215039 | |
parent | ad84d289a2b4cb9e178396fcf3d0ba8f1bc22f56 (diff) | |
download | plan9front-af047b58b4f5dd9af244222f694fa04d41399ff7.tar.xz |
paint: only three remote holes in the default install, in a heck of a long time!
-rw-r--r-- | sys/src/cmd/paint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/paint.c b/sys/src/cmd/paint.c index ab361e7f9..d79b648d5 100644 --- a/sys/src/cmd/paint.c +++ b/sys/src/cmd/paint.c @@ -86,7 +86,7 @@ main(int argc, char *argv[]) case 0: break; case 1: - strncpy(file, argv[0], sizeof(file)-1); + snprint(file, sizeof(file), "%s", argv[0]); if(loadimg(file) < 0) sysfatal("%r"); break; |