aboutsummaryrefslogtreecommitdiffstats
path: root/src/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c
index 57fac7af378..d6ed3e41284 100644
--- a/src/print.c
+++ b/src/print.c
@@ -169,11 +169,13 @@ bool print_output_debug_flag EXTERNALLY_VISIBLE = 1;
169 if (print_buffer_pos != print_buffer_pos_byte \ 169 if (print_buffer_pos != print_buffer_pos_byte \
170 && NILP (BVAR (current_buffer, enable_multibyte_characters)))\ 170 && NILP (BVAR (current_buffer, enable_multibyte_characters)))\
171 { \ 171 { \
172 unsigned char *temp = alloca (print_buffer_pos + 1); \ 172 USE_SAFE_ALLOCA; \
173 unsigned char *temp = SAFE_ALLOCA (print_buffer_pos + 1); \
173 copy_text ((unsigned char *) print_buffer, temp, \ 174 copy_text ((unsigned char *) print_buffer, temp, \
174 print_buffer_pos_byte, 1, 0); \ 175 print_buffer_pos_byte, 1, 0); \
175 insert_1_both ((char *) temp, print_buffer_pos, \ 176 insert_1_both ((char *) temp, print_buffer_pos, \
176 print_buffer_pos, 0, 1, 0); \ 177 print_buffer_pos, 0, 1, 0); \
178 SAFE_FREE (); \
177 } \ 179 } \
178 else \ 180 else \
179 insert_1_both (print_buffer, print_buffer_pos, \ 181 insert_1_both (print_buffer, print_buffer_pos, \