diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2006-12-12 11:36:41 +0000 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2006-12-12 11:36:41 +0000 |
commit | 8a89a4f1bb82cfdcf0d60fe79d4a46789692b97f (patch) | |
tree | 0a14c5e094c7cb9ab3d1e09e505cbdef9f18e4a8 /mg.c | |
parent | eddad28d0244a5ea78db12a5ffa9cd57f0949857 (diff) | |
download | perl-8a89a4f1bb82cfdcf0d60fe79d4a46789692b97f.tar.gz |
The overly-picky AIX xlc compiler doesn't like the style
from patch #29446
p4raw-id: //depot/perl@29530
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -2631,18 +2631,18 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg) /* Shorter than original, will be padded. */ 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', + /* Special case for darwin: see [perl #38868] */ + memset(PL_origargv[0] + len + 1, + (int)'\0', PL_origalen - len - 1); #else - /* Is the space counterintuitive? Yes. - * (You were expecting \0?) - * Does it work? Seems to. (In Linux 2.4.20 at least.) - * --jhi */ - (int)' ', + /* Is the space counterintuitive? Yes. + * (You were expecting \0?) + * Does it work? Seems to. (In Linux 2.4.20 at least.) + * --jhi */ + memset(PL_origargv[0] + len + 1, + (int)' ', PL_origalen - len - 1); #endif - PL_origalen - len - 1); } PL_origargv[0][PL_origalen-1] = 0; for (i = 1; i < PL_origargc; i++) |