summaryrefslogtreecommitdiff
path: root/src/editfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 9678d4da6a..dec0133951 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -2344,7 +2344,7 @@ from adjoining text, if those properties are sticky. */)
else
str[0] = c, len = 1;
if (BUF_BYTES_MAX / len < XINT (count))
- error ("Maximum buffer size would be exceeded");
+ buffer_overflow ();
n = XINT (count) * len;
if (n <= 0)
return Qnil;