diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/charset.c b/src/charset.c index 8518cc8829d..65a99561237 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -539,8 +539,8 @@ CHARSET should be defined by `defined-charset' in advance.") | |||
| 539 | 539 | ||
| 540 | int | 540 | int |
| 541 | find_charset_in_str (str, len, charsets, table) | 541 | find_charset_in_str (str, len, charsets, table) |
| 542 | unsigned char *str, *charsets; | 542 | unsigned char *str; |
| 543 | int len; | 543 | int len, *charsets; |
| 544 | Lisp_Object table; | 544 | Lisp_Object table; |
| 545 | { | 545 | { |
| 546 | int num = 0; | 546 | int num = 0; |
| @@ -584,7 +584,7 @@ Optional arg TABLE if non-nil is a unification table to look up.") | |||
| 584 | (beg, end, table) | 584 | (beg, end, table) |
| 585 | Lisp_Object beg, end, table; | 585 | Lisp_Object beg, end, table; |
| 586 | { | 586 | { |
| 587 | char charsets[MAX_CHARSET + 1]; | 587 | int charsets[MAX_CHARSET + 1]; |
| 588 | int from, to, stop, i; | 588 | int from, to, stop, i; |
| 589 | Lisp_Object val; | 589 | Lisp_Object val; |
| 590 | 590 | ||
| @@ -593,7 +593,7 @@ Optional arg TABLE if non-nil is a unification table to look up.") | |||
| 593 | stop = to = XFASTINT (end); | 593 | stop = to = XFASTINT (end); |
| 594 | if (from < GPT && GPT < to) | 594 | if (from < GPT && GPT < to) |
| 595 | stop = GPT; | 595 | stop = GPT; |
| 596 | bzero (charsets, MAX_CHARSET + 1); | 596 | bzero (charsets, (MAX_CHARSET + 1) * sizeof (int)); |
| 597 | while (1) | 597 | while (1) |
| 598 | { | 598 | { |
| 599 | find_charset_in_str (POS_ADDR (from), stop - from, charsets, table); | 599 | find_charset_in_str (POS_ADDR (from), stop - from, charsets, table); |