From d6198362499aa294b7f13daf9ec78432b9756c67 Mon Sep 17 00:00:00 2001 From: tjr Date: Sat, 13 Aug 2005 02:30:15 +0000 Subject: Change OUT from -2 to CHAR_MIN-1, making it impossible for it to inadvertently match a negative char in the RE being compiled. This fixes compilation of "\376" (as an ERE) and "\376\376" (as a BRE). PR: 84740 MFC after: 1 week --- lib/libc/regex/regex2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/regex/regex2.h') diff --git a/lib/libc/regex/regex2.h b/lib/libc/regex/regex2.h index 6beea48..1df7067 100644 --- a/lib/libc/regex/regex2.h +++ b/lib/libc/regex/regex2.h @@ -196,5 +196,5 @@ struct re_guts { }; /* misc utilities */ -#define OUT (-2) /* a non-character value */ +#define OUT (CHAR_MIN - 1) /* a non-character value */ #define ISWORD(c) (iswalnum((uch)(c)) || (c) == '_') -- cgit v1.1