summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-08-19 00:46:59 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-08-19 00:46:59 +0000
commita026971d0f28d48a093e5fdd42c475d75eb83b44 (patch)
treef2d48444c3323bf23bcda6300ed549df07ce03bf /regexec.c
parent4521c7914c9458406ab869e3d05e04c7de0567d5 (diff)
downloadperl-a026971d0f28d48a093e5fdd42c475d75eb83b44.tar.gz
Use memcmp instead of bcmp even when we don't care about order.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index 4119dfc97a..1ee1436f24 100644
--- a/regexec.c
+++ b/regexec.c
@@ -668,7 +668,7 @@ char *prog;
sayNO;
if (regeol - locinput < ln)
sayNO;
- if (ln > 1 && bcmp(s, locinput, ln) != 0)
+ if (ln > 1 && memcmp(s, locinput, ln) != 0)
sayNO;
locinput += ln;
nextchar = *locinput;
@@ -748,7 +748,7 @@ char *prog;
ln = regendp[n] - s;
if (locinput + ln > regeol)
sayNO;
- if (ln > 1 && bcmp(s, locinput, ln) != 0)
+ if (ln > 1 && memcmp(s, locinput, ln) != 0)
sayNO;
locinput += ln;
nextchar = *locinput;