summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-08-04 06:55:46 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-08-04 06:55:46 +0000
commit6af654855041e350ad1ba2c39f0be19af24f50c6 (patch)
treed941ab3bc527634de1b65ef1116105e51220142d /sv.c
parent58618f23d81135f8218a27f5197a29e9c271d2cb (diff)
downloadperl-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.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sv.c b/sv.c
index e71c03c68b..ce16807901 100644
--- a/sv.c
+++ b/sv.c
@@ -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;