File argyllcms-1.4.0-warnings.patch of Package argyllcms

diff -up Argyll_V1.4.0/gamut/maptest.c.warning Argyll_V1.4.0/gamut/maptest.c
--- Argyll_V1.4.0/gamut/maptest.c.warning	2012-06-22 18:03:25.113289700 +0200
+++ Argyll_V1.4.0/gamut/maptest.c	2012-06-22 18:10:57.615637380 +0200
@@ -99,7 +99,7 @@ main(int argc, char *argv[]) {
 			else if (argv[fa][1] == 'i' || argv[fa][1] == 'I') {
 				if (na == NULL) usage();
 				fa = nfa;
-				strncpy(img_name,na,MAXNAMEL); img_name[MAXNAMEL] = '\000';
+				strncpy(img_name,na,MAXNAMEL); img_name[MAXNAMEL-1] = '\000';
 			}
 
 			else
openSUSE Build Service is sponsored by