ref: af047b58b4f5dd9af244222f694fa04d41399ff7
parent: ad84d289a2b4cb9e178396fcf3d0ba8f1bc22f56
author: stanley lieber <[email protected]>
date: Mon Jul 9 17:19:03 EDT 2012
paint: only three remote holes in the default install, in a heck of a long time!
--- a/sys/src/cmd/paint.c
+++ b/sys/src/cmd/paint.c
@@ -86,7 +86,7 @@
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;