summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Marquess <paul.marquess@btinternet.com>1999-04-23 00:12:08 +0100
committerGurusamy Sarathy <gsar@cpan.org>1999-05-10 03:12:37 +0000
commit6529e8bd3873e81beaa033cdb009d1440aded463 (patch)
tree91dc74de96db6217a25f49e43ad700b625236d4c
parent8ac9c18d0290aa1420a64753c37ce5c0f1523967 (diff)
downloadperl-6529e8bd3873e81beaa033cdb009d1440aded463.tar.gz
PATCH for small bug in scan_bin
Message-ID: <5104D4DBC598D211B5FE0000F8FE7EB29C6B45@mbtlipnt02.btlabs.bt.co.uk> p4raw-id: //depot/perl@3354
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 31e9c39178..d69b08484d 100644
--- a/util.c
+++ b/util.c
@@ -2440,7 +2440,7 @@ scan_bin(char *start, I32 len, I32 *retlen)
retval = n | (*s++ - '0');
len--;
}
- if (len && (*s >= '2' || *s <= '9')) {
+ if (len && (*s >= '2' && *s <= '9')) {
dTHR;
if (ckWARN(WARN_UNSAFE))
warner(WARN_UNSAFE, "Illegal binary digit '%c' ignored", *s);