diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 8d0fdd125dc..d9e00c3aeb4 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -2211,7 +2211,7 @@ INIT must be an integer that represents a character. */) | |||
| 2211 | int len = CHAR_STRING (c, str); | 2211 | int len = CHAR_STRING (c, str); |
| 2212 | EMACS_INT string_len = XINT (length); | 2212 | EMACS_INT string_len = XINT (length); |
| 2213 | 2213 | ||
| 2214 | if (string_len > MOST_POSITIVE_FIXNUM / len) | 2214 | if (string_len > STRING_BYTES_MAX / len) |
| 2215 | string_overflow (); | 2215 | string_overflow (); |
| 2216 | nbytes = len * string_len; | 2216 | nbytes = len * string_len; |
| 2217 | val = make_uninit_multibyte_string (string_len, nbytes); | 2217 | val = make_uninit_multibyte_string (string_len, nbytes); |