summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-05-05 19:33:16 +0000
committerRichard M. Stallman <rms@gnu.org>1998-05-05 19:33:16 +0000
commit833d591d600ba1ba05ff02717ac6c33b8e6d6606 (patch)
tree3711de8c9a31e9c2284cd363585b71e86e1fead3
parent643c73b90bcfd4f0eafd5681a3539ef49a29821c (diff)
downloademacs-833d591d600ba1ba05ff02717ac6c33b8e6d6606.tar.gz
(create_process): Add cast when calling encode_coding
and another when storing buf into new_argv.
-rw-r--r--src/process.c4
1 files 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;