aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorRichard M. Stallman1998-05-05 19:33:16 +0000
committerRichard M. Stallman1998-05-05 19:33:16 +0000
commit833d591d600ba1ba05ff02717ac6c33b8e6d6606 (patch)
tree3711de8c9a31e9c2284cd363585b71e86e1fead3 /src/process.c
parent643c73b90bcfd4f0eafd5681a3539ef49a29821c (diff)
downloademacs-833d591d600ba1ba05ff02717ac6c33b8e6d6606.tar.gz
emacs-833d591d600ba1ba05ff02717ac6c33b8e6d6606.zip
(create_process): Add cast when calling encode_coding
and another when storing buf into new_argv.
Diffstat (limited to 'src/process.c')
-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)
1468 int size = encoding_buffer_size (coding, len); 1468 int size = encoding_buffer_size (coding, len);
1469 unsigned char *buf = (unsigned char *) alloca (size); 1469 unsigned char *buf = (unsigned char *) alloca (size);
1470 1470
1471 encode_coding (coding, new_argv[i], buf, len, size); 1471 encode_coding (coding, (unsigned char *)new_argv[i], buf, len, size);
1472 buf[coding->produced] = 0; 1472 buf[coding->produced] = 0;
1473 /* We don't have to free new_argv[i] because it points to a 1473 /* We don't have to free new_argv[i] because it points to a
1474 Lisp string given as an argument to `start-process'. */ 1474 Lisp string given as an argument to `start-process'. */
1475 new_argv[i++] = buf; 1475 new_argv[i++] = (char *) buf;
1476 } 1476 }
1477 UNGCPRO; 1477 UNGCPRO;
1478 coding->mode &= ~CODING_MODE_LAST_BLOCK; 1478 coding->mode &= ~CODING_MODE_LAST_BLOCK;