summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1998-11-16 06:26:27 +0000
committerKenichi Handa <handa@m17n.org>1998-11-16 06:26:27 +0000
commitda63a5fee1b6dc10e6ddad9c61d3f59568541f27 (patch)
tree670797f370aec625972f2a5a21197caeca6d1386 /src/charset.c
parent72b718d76538ad0ab6d52dc5abe628a7943967e9 (diff)
downloademacs-da63a5fee1b6dc10e6ddad9c61d3f59568541f27.tar.gz
(non_ascii_char_to_string): If C is negative, signal error.
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c3
1 files changed, 3 insertions, 0 deletions
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);