diff options
| author | Paul Eggert | 2011-08-04 19:15:35 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-08-04 19:15:35 -0700 |
| commit | 0065d05491ce5981ea20896bb26d21dcd31e6769 (patch) | |
| tree | 13240167319d4a99ab5eacae4a883258eb2d28de /src/character.c | |
| parent | 18ab493650d648ab8dca651ea2698861f926e895 (diff) | |
| download | emacs-0065d05491ce5981ea20896bb26d21dcd31e6769.tar.gz emacs-0065d05491ce5981ea20896bb26d21dcd31e6769.zip | |
Adjust in response to jan.h.d's comments.
See, for example <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9196#26>.
Diffstat (limited to 'src/character.c')
| -rw-r--r-- | src/character.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/character.c b/src/character.c index 50b5b252871..fb9b8a9b93e 100644 --- a/src/character.c +++ b/src/character.c | |||
| @@ -902,9 +902,7 @@ usage: (string &rest CHARACTERS) */) | |||
| 902 | Lisp_Object str; | 902 | Lisp_Object str; |
| 903 | USE_SAFE_ALLOCA; | 903 | USE_SAFE_ALLOCA; |
| 904 | 904 | ||
| 905 | if (min (PTRDIFF_MAX, SIZE_MAX) / MAX_MULTIBYTE_LENGTH < n) | 905 | SAFE_NALLOCA (buf, MAX_MULTIBYTE_LENGTH, n); |
| 906 | memory_full (SIZE_MAX); | ||
| 907 | SAFE_ALLOCA (buf, unsigned char *, MAX_MULTIBYTE_LENGTH * n); | ||
| 908 | p = buf; | 906 | p = buf; |
| 909 | 907 | ||
| 910 | for (i = 0; i < n; i++) | 908 | for (i = 0; i < n; i++) |