X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Fprocess-unix.c;h=8220dcc58e5756cfdc0dfdacf96a64bfd88a8db4;hp=6be1c1ae11eb77a921f6c1807e3cc1a06421db1b;hb=fc475e6669a613cd6d98eb5511c749a23b63c7ac;hpb=49798660c638e91e7bcb4432d0aa7440bab49568 diff --git a/src/process-unix.c b/src/process-unix.c index 6be1c1a..8220dcc 100644 --- a/src/process-unix.c +++ b/src/process-unix.c @@ -735,7 +735,7 @@ unix_create_process (struct Lisp_Process *p, /* Nothing below here GCs so our string pointers shouldn't move. */ new_argv = alloca_array (char *, nargv + 2); - new_argv[0] = (char *) XSTRING_DATA (program); + GET_C_STRING_FILENAME_DATA_ALLOCA (program, new_argv[0]); for (i = 0; i < nargv; i++) { Lisp_Object tem = argv[i]; @@ -743,7 +743,7 @@ unix_create_process (struct Lisp_Process *p, new_argv[i + 1] = (char *) XSTRING_DATA (tem); } new_argv[i + 1] = 0; - current_dir = (char *) XSTRING_DATA (cur_dir); + GET_C_STRING_FILENAME_DATA_ALLOCA (cur_dir, current_dir); #ifdef HAVE_PTYS if (!NILP (Vprocess_connection_type))