From 833d591d600ba1ba05ff02717ac6c33b8e6d6606 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 5 May 1998 19:33:16 +0000 Subject: [PATCH] (create_process): Add cast when calling encode_coding and another when storing buf into new_argv. --- src/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/process.c b/src/process.c index 158f9d3ffcb..0f5a9fdaff0 100644 --- a/src/process.c +++ b/src/process.c @@ -1468,11 +1468,11 @@ create_process (process, new_argv, current_dir) int size = encoding_buffer_size (coding, len); unsigned char *buf = (unsigned char *) alloca (size); - encode_coding (coding, new_argv[i], buf, len, size); + encode_coding (coding, (unsigned char *)new_argv[i], buf, len, size); buf[coding->produced] = 0; /* We don't have to free new_argv[i] because it points to a Lisp string given as an argument to `start-process'. */ - new_argv[i++] = buf; + new_argv[i++] = (char *) buf; } UNGCPRO; coding->mode &= ~CODING_MODE_LAST_BLOCK; -- 2.39.2