From da63a5fee1b6dc10e6ddad9c61d3f59568541f27 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 16 Nov 1998 06:26:27 +0000 Subject: [PATCH] (non_ascii_char_to_string): If C is negative, signal error. --- src/charset.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/charset.c b/src/charset.c index 45fb383ad09..054b2848894 100644 --- a/src/charset.c +++ b/src/charset.c @@ -141,6 +141,9 @@ non_ascii_char_to_string (c, workbuf, str) { int charset, c1, c2; + if (c < 0) + invalid_character (c); + if (COMPOSITE_CHAR_P (c)) { int cmpchar_id = COMPOSITE_CHAR_ID (c); -- 2.39.2