diff options
| author | Kenichi Handa | 1998-11-16 06:26:27 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-11-16 06:26:27 +0000 |
| commit | da63a5fee1b6dc10e6ddad9c61d3f59568541f27 (patch) | |
| tree | 670797f370aec625972f2a5a21197caeca6d1386 | |
| parent | 72b718d76538ad0ab6d52dc5abe628a7943967e9 (diff) | |
| download | emacs-da63a5fee1b6dc10e6ddad9c61d3f59568541f27.tar.gz emacs-da63a5fee1b6dc10e6ddad9c61d3f59568541f27.zip | |
(non_ascii_char_to_string): If C is negative, signal error.
| -rw-r--r-- | src/charset.c | 3 |
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) | |||
| 141 | { | 141 | { |
| 142 | int charset, c1, c2; | 142 | int charset, c1, c2; |
| 143 | 143 | ||
| 144 | if (c < 0) | ||
| 145 | invalid_character (c); | ||
| 146 | |||
| 144 | if (COMPOSITE_CHAR_P (c)) | 147 | if (COMPOSITE_CHAR_P (c)) |
| 145 | { | 148 | { |
| 146 | int cmpchar_id = COMPOSITE_CHAR_ID (c); | 149 | int cmpchar_id = COMPOSITE_CHAR_ID (c); |