diff options
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/callproc.c b/src/callproc.c index 3a91be3d8da..1bdb57a27d0 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -252,7 +252,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) | |||
| 252 | val = Qraw_text; | 252 | val = Qraw_text; |
| 253 | else | 253 | else |
| 254 | { | 254 | { |
| 255 | SAFE_ALLOCA (args2, Lisp_Object *, (nargs + 1) * sizeof *args2); | 255 | SAFE_NALLOCA (args2, 1, nargs + 1); |
| 256 | args2[0] = Qcall_process; | 256 | args2[0] = Qcall_process; |
| 257 | for (i = 0; i < nargs; i++) args2[i + 1] = args[i]; | 257 | for (i = 0; i < nargs; i++) args2[i + 1] = args[i]; |
| 258 | coding_systems = Ffind_operation_coding_system (nargs + 1, args2); | 258 | coding_systems = Ffind_operation_coding_system (nargs + 1, args2); |
| @@ -726,7 +726,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) | |||
| 726 | { | 726 | { |
| 727 | ptrdiff_t i; | 727 | ptrdiff_t i; |
| 728 | 728 | ||
| 729 | SAFE_ALLOCA (args2, Lisp_Object *, (nargs + 1) * sizeof *args2); | 729 | SAFE_NALLOCA (args2, 1, nargs + 1); |
| 730 | args2[0] = Qcall_process; | 730 | args2[0] = Qcall_process; |
| 731 | for (i = 0; i < nargs; i++) args2[i + 1] = args[i]; | 731 | for (i = 0; i < nargs; i++) args2[i + 1] = args[i]; |
| 732 | coding_systems | 732 | coding_systems |
| @@ -1024,7 +1024,7 @@ usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &r | |||
| 1024 | else | 1024 | else |
| 1025 | { | 1025 | { |
| 1026 | USE_SAFE_ALLOCA; | 1026 | USE_SAFE_ALLOCA; |
| 1027 | SAFE_ALLOCA (args2, Lisp_Object *, (nargs + 1) * sizeof *args2); | 1027 | SAFE_NALLOCA (args2, 1, nargs + 1); |
| 1028 | args2[0] = Qcall_process_region; | 1028 | args2[0] = Qcall_process_region; |
| 1029 | for (i = 0; i < nargs; i++) args2[i + 1] = args[i]; | 1029 | for (i = 0; i < nargs; i++) args2[i + 1] = args[i]; |
| 1030 | coding_systems = Ffind_operation_coding_system (nargs + 1, args2); | 1030 | coding_systems = Ffind_operation_coding_system (nargs + 1, args2); |
| @@ -1153,7 +1153,7 @@ child_setup (int in, int out, int err, register char **new_argv, int set_pgrp, L | |||
| 1153 | cleaned up in the usual way. */ | 1153 | cleaned up in the usual way. */ |
| 1154 | { | 1154 | { |
| 1155 | register char *temp; | 1155 | register char *temp; |
| 1156 | register int i; | 1156 | size_t i; /* size_t, because ptrdiff_t might overflow here! */ |
| 1157 | 1157 | ||
| 1158 | i = SBYTES (current_dir); | 1158 | i = SBYTES (current_dir); |
| 1159 | #ifdef MSDOS | 1159 | #ifdef MSDOS |