ref: 195e5cafd382019cb307815343581ded7103059e
parent: 331ec9e6a17964aa78b4ca9b1565901bc5e01671
author: stanley lieber <stanley.lieber@gmail.com>
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;
--
⑨