summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2012-07-09 21:19:03 -0500
committerstanley lieber <stanley.lieber@gmail.com>2012-07-09 21:19:03 -0500
commitaf047b58b4f5dd9af244222f694fa04d41399ff7 (patch)
tree9e04eece3f7ae430bc975a1be3e07050b8215039
parentad84d289a2b4cb9e178396fcf3d0ba8f1bc22f56 (diff)
downloadplan9front-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.c2
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;