diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-01-26 11:18:02 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-01-26 11:18:02 +0000 |
commit | 798b63bc924a07589315b3229311582adce06136 (patch) | |
tree | a51d217cad534c72b181b97179e2543a2ed89327 /toke.c | |
parent | ef36c6a75a14ecb6dcb87636f28264674a031e0b (diff) | |
download | perl-798b63bc924a07589315b3229311582adce06136.tar.gz |
As we're not passing over (or copying in) a NUL, don't need that extra
byte for it, so correct the < to <= so that we use the smallbuf
whenever possible.
p4raw-id: //depot/perl@30000
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -794,11 +794,11 @@ S_incline(pTHX_ char *s) char *tmpbuf, *tmpbuf2; GV **gvp, *gv2; STRLEN tmplen2 = strlen(s); - if (tmplen + 2 < sizeof smallbuf) + if (tmplen + 2 <= sizeof smallbuf) tmpbuf = smallbuf; else Newx(tmpbuf, tmplen + 2, char); - if (tmplen2 + 2 < sizeof smallbuf2) + if (tmplen2 + 2 <= sizeof smallbuf2) tmpbuf2 = smallbuf2; else Newx(tmpbuf2, tmplen2 + 2, char); |