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 453286836fd..cfbb79b2e61 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -2204,7 +2204,7 @@ INIT must be an integer that represents a character. */)
2204 int len = CHAR_STRING (c, str); 2204 int len = CHAR_STRING (c, str);
2205 EMACS_INT string_len = XINT (length); 2205 EMACS_INT string_len = XINT (length);
2206 2206
2207 if (string_len > MOST_POSITIVE_FIXNUM / len) 2207 if (string_len > STRING_BYTES_MAX / len)
2208 string_overflow (); 2208 string_overflow ();
2209 nbytes = len * string_len; 2209 nbytes = len * string_len;
2210 val = make_uninit_multibyte_string (string_len, nbytes); 2210 val = make_uninit_multibyte_string (string_len, nbytes);