Module Name:    src
Committed By:   joerg
Date:           Sat Oct  8 20:35:00 UTC 2016

Modified Files:
        src/external/gpl2/texinfo/dist/info: infokey.c

Log Message:
Explicitly cast Meta(c) to char as the intermediate value can be too
large for a signed character.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl2/texinfo/dist/info/infokey.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl2/texinfo/dist/info/infokey.c
diff -u src/external/gpl2/texinfo/dist/info/infokey.c:1.2 src/external/gpl2/texinfo/dist/info/infokey.c:1.3
--- src/external/gpl2/texinfo/dist/info/infokey.c:1.2	Thu Jan 14 00:34:52 2016
+++ src/external/gpl2/texinfo/dist/info/infokey.c	Sat Oct  8 20:34:59 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: infokey.c,v 1.2 2016/01/14 00:34:52 christos Exp $	*/
+/*	$NetBSD: infokey.c,v 1.3 2016/10/08 20:34:59 joerg Exp $	*/
 
 /* infokey.c -- compile ~/.infokey to ~/.info.
    Id: infokey.c,v 1.9 2004/12/14 00:15:36 karl Exp 
@@ -446,7 +446,7 @@ compile (FILE *fp, const char *filename,
 #define	To_seq(c) \
 		  do { \
 		    if (slen < sizeof seq) \
-		      seq[slen++] = meta ? Meta(c) : (c); \
+		      seq[slen++] = meta ? (char)Meta(c) : (c); \
 		    else \
 		      { \
 			syntax_error(filename, lnum, _("key sequence too long"), \

Reply via email to