Jerry D. Hedden [Fri, 21 Dec 2007 09:13:41 +0000 (04:13 -0500)]
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <
1ff86f510712210613s71712346i6e9f2b5e7275aa34@mail.gmail.com>
p4raw-id: //depot/perl@32689
do_spawn (char *cmd)
{
dTHX;
- char **a,*s,*metachars = "$&*(){}[]'\";\\?>|<~`\n";
+ char const **a;
+ char *s,*metachars = "$&*(){}[]'\";\\?>|<~`\n";
const char *command[4];
while (*cmd && isSPACE(*cmd))
return do_spawnvp("sh",command);
}
- Newx (PL_Argv,(s-cmd)/2+2,char*);
+ Newx (PL_Argv,(s-cmd)/2+2,const char*);
PL_Cmd=savepvn (cmd,s-cmd);
a=PL_Argv;
for (s=PL_Cmd; *s;) {