diff options
| author | Paul Eggert | 2011-06-06 22:32:27 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-06 22:32:27 -0700 |
| commit | 2bccce07c2b7d1aadbe6bd5a630540c7e4b252e2 (patch) | |
| tree | 0c9ea71b4dcbbc07dcd9f21cc91ef8ca27c6a5e9 /src/alloc.c | |
| parent | 81eafe297773904d0a532328d27d658dde29be99 (diff) | |
| download | emacs-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.c | 4 |
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); |