summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-04-23 16:36:31 +0000
committerNicholas Clark <nick@ccl4.org>2007-04-23 16:36:31 +0000
commitdb187877da40b107958f433a7167f7f85c7162d2 (patch)
tree23f1a829f29949b285b125f423d3ace9cdbe85cf /pp_pack.c
parent0ccab2bc1ed9d8d9446194047fec5d4b241a67bf (diff)
downloadperl-db187877da40b107958f433a7167f7f85c7162d2.tar.gz
Remove the unnecessary allocation of and assignment to hunk[3], as the
perl API functions called don't need a NUL terminated string. p4raw-id: //depot/perl@31038
Diffstat (limited to 'pp_pack.c')
-rw-r--r--pp_pack.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pp_pack.c b/pp_pack.c
index f2f79f18f9..8e4993294d 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -2106,9 +2106,8 @@ S_unpack_rec(pTHX_ tempsym_t* symptr, const char *s, const char *strbeg, const c
if (utf8) {
while (next_uni_uu(aTHX_ &s, strend, &len)) {
I32 a, b, c, d;
- char hunk[4];
+ char hunk[3];
- hunk[3] = '\0';
while (len > 0) {
next_uni_uu(aTHX_ &s, strend, &a);
next_uni_uu(aTHX_ &s, strend, &b);
@@ -2135,9 +2134,8 @@ S_unpack_rec(pTHX_ tempsym_t* symptr, const char *s, const char *strbeg, const c
} else {
while (s < strend && *s > ' ' && ISUUCHAR(*s)) {
I32 a, b, c, d;
- char hunk[4];
+ char hunk[3];
- hunk[3] = '\0';
len = PL_uudmap[*(U8*)s++] & 077;
while (len > 0) {
if (s < strend && ISUUCHAR(*s))