summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorRobin Barker <RMBarker@cpan.org>2001-04-09 15:58:04 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-04-09 13:07:53 +0000
commit96fa62ad548d6e808f1530052e817f845408c4bb (patch)
treec978c69981a85608dc140aa284b67739abcad9a4 /sv.c
parent199d4a26d48e1b7e74e11764ce528d26a727b369 (diff)
downloadperl-96fa62ad548d6e808f1530052e817f845408c4bb.tar.gz
Re: [PATCH perl@9424] isn't numeric warning
Message-Id: <200104091358.OAA24811@tempest.npl.co.uk> (This corrects the case where the "isn't numeric" string contains \0s and is longer than the temporary buffer, and contains \0 at the point the string would be truncated by "...".) p4raw-id: //depot/perl@9660
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 1737e8fcc8..a891a88e4a 100644
--- a/sv.c
+++ b/sv.c
@@ -1469,7 +1469,7 @@ S_not_a_number(pTHX_ SV *sv)
*d++ = toCTRL(ch);
}
}
- if (*s) {
+ if (*s < end) {
*d++ = '.';
*d++ = '.';
*d++ = '.';