* print.c (PRINTFINISH): Undo alloca change; not needed.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 24 Oct 2011 22:56:06 +0000 (15:56 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 24 Oct 2011 22:56:06 +0000 (15:56 -0700)
src/ChangeLog
src/print.c

index 8e2ef5e..c288ed6 100644 (file)
        (temp_output_buffer_setup, Fprin1_to_string, print_object):
        Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts.
        (PRINTPREPARE): Use int, not ptrdiff_t, where int is wide enough.
-       (PRINTFINISH): Use SAFE_ALLOCA, not alloca.
        (printchar, strout): Use xpalloc to catch size calculation overflow.
        (Fexternal_debugging_output): Use CHECK_CHARACTER, not CHECK_NUMBER,
        to avoid mishandling large integers.
index 8e5aab8..63ef3e6 100644 (file)
@@ -173,14 +173,12 @@ int print_output_debug_flag EXTERNALLY_VISIBLE = 1;
        if (print_buffer_pos != print_buffer_pos_byte                   \
           && NILP (BVAR (current_buffer, enable_multibyte_characters)))        \
         {                                                              \
-          USE_SAFE_ALLOCA;                                             \
-          unsigned char *temp;                                         \
-          SAFE_ALLOCA (temp, unsigned char *, print_buffer_pos + 1);   \
+          unsigned char *temp                                          \
+            = (unsigned char *) alloca (print_buffer_pos + 1);         \
           copy_text ((unsigned char *) print_buffer, temp,             \
                      print_buffer_pos_byte, 1, 0);                     \
           insert_1_both ((char *) temp, print_buffer_pos,              \
                          print_buffer_pos, 0, 1, 0);                   \
-          SAFE_FREE ();                                                \
         }                                                              \
        else                                                            \
         insert_1_both (print_buffer, print_buffer_pos,                 \