From ad84d289a2b4cb9e178396fcf3d0ba8f1bc22f56 Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Mon, 9 Jul 2012 17:05:59 -0500 Subject: paint: only two remote holes in the default install, in a heck of a long time! --- sys/src/cmd/paint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/paint.c b/sys/src/cmd/paint.c index 1e4d95d47..ab361e7f9 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(argv[0])); + strncpy(file, argv[0], sizeof(file)-1); if(loadimg(file) < 0) sysfatal("%r"); break; -- cgit v1.2.3