ref: ad84d289a2b4cb9e178396fcf3d0ba8f1bc22f56
parent: 546ee86c5253011ddcc9fd25a0ee554e007bd587
author: stanley lieber <[email protected]>
date: Mon Jul 9 13:05:59 EDT 2012
paint: only two 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(argv[0]));
+ strncpy(file, argv[0], sizeof(file)-1);
if(loadimg(file) < 0)
sysfatal("%r");
break;