From: Richard M. Stallman Date: Tue, 5 May 1998 19:33:16 +0000 (+0000) Subject: (create_process): Add cast when calling encode_coding X-Git-Tag: emacs-20.3~1127 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=833d591d600ba1ba05ff02717ac6c33b8e6d6606;p=emacs.git (create_process): Add cast when calling encode_coding and another when storing buf into new_argv. --- 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;