comparison src/process.c @ 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 050ea21cec87
children ba8852d809f6
comparison
equal deleted inserted replaced
21949:a2166fb22606 21950:c66b85d05dd8
1466 { 1466 {
1467 int len = strlen (new_argv[i]); 1467 int len = strlen (new_argv[i]);
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;
1479 } 1479 }
1480 1480