git: 9front

Download patch

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