aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2011-06-06 22:32:27 -0700
committerPaul Eggert2011-06-06 22:32:27 -0700
commit2bccce07c2b7d1aadbe6bd5a630540c7e4b252e2 (patch)
tree0c9ea71b4dcbbc07dcd9f21cc91ef8ca27c6a5e9 /src/alloc.c
parent81eafe297773904d0a532328d27d658dde29be99 (diff)
downloademacs-2bccce07c2b7d1aadbe6bd5a630540c7e4b252e2.tar.gz
emacs-2bccce07c2b7d1aadbe6bd5a630540c7e4b252e2.zip
* alloc.c (Fmake_string): Check for out-of-range init.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c
index cfbb79b2e61..db1744bc7cc 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -2186,9 +2186,9 @@ INIT must be an integer that represents a character. */)
2186 EMACS_INT nbytes; 2186 EMACS_INT nbytes;
2187 2187
2188 CHECK_NATNUM (length); 2188 CHECK_NATNUM (length);
2189 CHECK_NUMBER (init); 2189 CHECK_CHARACTER (init);
2190 2190
2191 c = XINT (init); 2191 c = XFASTINT (init);
2192 if (ASCII_CHAR_P (c)) 2192 if (ASCII_CHAR_P (c))
2193 { 2193 {
2194 nbytes = XINT (length); 2194 nbytes = XINT (length);