diff options
author | Perl 5 Porters <perl5-porters@africa.nicoh.com> | 1996-08-19 00:46:59 +0000 |
---|---|---|
committer | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1996-08-19 00:46:59 +0000 |
commit | a026971d0f28d48a093e5fdd42c475d75eb83b44 (patch) | |
tree | f2d48444c3323bf23bcda6300ed549df07ce03bf /regexec.c | |
parent | 4521c7914c9458406ab869e3d05e04c7de0567d5 (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |