diff options
author | Chris Dolan <chris@chrisdolan.net> | 2006-12-02 03:37:08 -0600 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-12-04 09:36:15 +0000 |
commit | 235ac35db87eeb01f0e613de4bd82180b6fa10e8 (patch) | |
tree | e99362e37bc2f52c545a59cc212122fc8d67344d /mg.c | |
parent | 2bf803e2214c46ec8286bc855080cf05bb5cf7a4 (diff) | |
download | perl-235ac35db87eeb01f0e613de4bd82180b6fa10e8.tar.gz |
Re: [perl #38868] Changing $0 on darwin leads to excessive padding in 'ps'
Message-Id: <005671A0-5C2B-464C-85B9-A91E52278194@chrisdolan.net>
p4raw-id: //depot/perl@29446
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2632,11 +2632,16 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg) Copy(s, PL_origargv[0], len, char); PL_origargv[0][len] = 0; memset(PL_origargv[0] + len + 1, +#ifdef PERL_DARWIN + /* Special case for darwin: see [perl #38868] */ + (int)'\0', +#else /* Is the space counterintuitive? Yes. - * (You were expecting \0?) + * (You were expecting \0?) * Does it work? Seems to. (In Linux 2.4.20 at least.) * --jhi */ (int)' ', +#endif PL_origalen - len - 1); } PL_origargv[0][PL_origalen-1] = 0; |