aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 0c18fca1755..d20ee1e59e3 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -2205,7 +2205,7 @@ INIT must be an integer that represents a character. */)
2205 int len = CHAR_STRING (c, str); 2205 int len = CHAR_STRING (c, str);
2206 EMACS_INT string_len = XINT (length); 2206 EMACS_INT string_len = XINT (length);
2207 2207
2208 if (string_len > MOST_POSITIVE_FIXNUM / len) 2208 if (string_len > STRING_BYTES_MAX / len)
2209 string_overflow (); 2209 string_overflow ();
2210 nbytes = len * string_len; 2210 nbytes = len * string_len;
2211 val = make_uninit_multibyte_string (string_len, nbytes); 2211 val = make_uninit_multibyte_string (string_len, nbytes);