diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-08-04 06:55:46 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-08-04 06:55:46 +0000 |
commit | 6af654855041e350ad1ba2c39f0be19af24f50c6 (patch) | |
tree | d941ab3bc527634de1b65ef1116105e51220142d /sv.c | |
parent | 58618f23d81135f8218a27f5197a29e9c271d2cb (diff) | |
download | perl-6af654855041e350ad1ba2c39f0be19af24f50c6.tar.gz |
Remove the "Newline in left-justified string" warning.
p4raw-id: //depot/perl@23192
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -10049,14 +10049,7 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV p = SvEND(sv); *p = '\0'; } - /* Use memchr() instead of strchr(), as eptr is not guaranteed */ - /* to point to a null-terminated string. */ - if (left && ckWARN(WARN_PRINTF) && memchr(eptr, '\n', elen) && - (PL_op->op_type == OP_PRTF || PL_op->op_type == OP_SPRINTF)) - Perl_warner(aTHX_ packWARN(WARN_PRINTF), - "Newline in left-justified string for %sprintf", - (PL_op->op_type == OP_PRTF) ? "" : "s"); - + need = (have > width ? have : width); gap = need - have; |