changeset 21950:c66b85d05dd8

(create_process): Add cast when calling encode_coding and another when storing buf into new_argv.
author Richard M. Stallman <rms@gnu.org>
date Tue, 05 May 1998 19:33:16 +0000
parents a2166fb22606
children ab7fa71c0957
files src/process.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Tue May 05 19:32:02 1998 +0000
+++ b/src/process.c	Tue May 05 19:33:16 1998 +0000
@@ -1468,11 +1468,11 @@
 	  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;