From 0ca76b1eacbc5df387325d8711d3add68486909a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 6 Feb 2011 21:06:59 -0800 Subject: [PATCH] * callproc.c: conform to C89 pointer rules --- src/ChangeLog | 1 + src/callproc.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index c061fc53b94..eeaa5a24ae6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -23,6 +23,7 @@ * lread.c (read1, hash_string): Likewise. * process.c (read_process_output, send_process, Fprocess_send_region): Likewise. + * callproc.c (Fcall_process): Likewise. 2011-02-06 Paul Eggert diff --git a/src/callproc.c b/src/callproc.c index 09d0ca5b42c..925eefb4b02 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -696,8 +696,8 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) faithfully reflect inserted text until we TEMP_SET_PT_BOTH below. */ specbind (Qinhibit_modification_hooks, Qt); - decode_coding_c_string (&process_coding, buf, nread, - curbuf); + decode_coding_c_string (&process_coding, (unsigned char *) buf, + nread, curbuf); unbind_to (count1, Qnil); if (display_on_the_fly && CODING_REQUIRE_DETECTION (&saved_coding) -- 2.39.5