diff options
| author | stanley lieber <stanley.lieber@gmail.com> | 2012-07-09 17:05:59 -0500 |
|---|---|---|
| committer | stanley lieber <stanley.lieber@gmail.com> | 2012-07-09 17:05:59 -0500 |
| commit | ad84d289a2b4cb9e178396fcf3d0ba8f1bc22f56 (patch) | |
| tree | 4584a490c344802b431caadb5ae2cef679b6b953 | |
| parent | 546ee86c5253011ddcc9fd25a0ee554e007bd587 (diff) | |
| download | plan9front-ad84d289a2b4cb9e178396fcf3d0ba8f1bc22f56.tar.xz | |
paint: only two 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 1e4d95d47..ab361e7f9 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(argv[0])); + strncpy(file, argv[0], sizeof(file)-1); if(loadimg(file) < 0) sysfatal("%r"); break; |
