Explicitly cast Meta(c) to char as the intermediate value can be too

large for a signed character.
This commit is contained in:
joerg 2016-10-08 20:34:59 +00:00
parent 6c825a13b7
commit 01415aaf3e
1 changed files with 2 additions and 2 deletions

View File

@ -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, struct sect *sections)
#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"), \