summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/doop.c b/doop.c
index 8239c33c7c..702aaf85e5 100644
--- a/doop.c
+++ b/doop.c
@@ -502,8 +502,7 @@ do_kv(ARGSproto)
RETURN;
}
- /* Guess how much room we need. hv_max may be a few too many. Oh well. */
- EXTEND(SP, HvMAX(keys) * (dokeys + dovalues));
+ EXTEND(SP, HvKEYS(keys) * (dokeys + dovalues));
PUTBACK; /* hv_iternext and hv_iterval might clobber stack_sp */
while (entry = hv_iternext(keys)) {