From dc9f33ebc46c395ea2acf8138c35637c92c59be6 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 20 Nov 2013 16:44:28 +0000 Subject: repair signed char vs isdigit ok espie --- usr.bin/m4/gnum4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/m4/gnum4.c b/usr.bin/m4/gnum4.c index 4c8010cbcbc..a1070334a60 100644 --- a/usr.bin/m4/gnum4.c +++ b/usr.bin/m4/gnum4.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gnum4.c,v 1.42 2011/11/06 12:25:43 espie Exp $ */ +/* $OpenBSD: gnum4.c,v 1.43 2013/11/20 16:44:27 deraadt Exp $ */ /* * Copyright (c) 1999 Marc Espie @@ -294,7 +294,7 @@ add_replace(const char *string, regex_t *re, const char *replace, regmatch_t *pm p++; continue; } - if (isdigit(p[1])) { + if (isdigit((unsigned char)p[1])) { add_sub(*(++p) - '0', string, re, pm); continue; } -- cgit v1.2.3