diff options
author | Tony Cook <tony@develop-help.com> | 2016-11-03 11:12:57 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2016-11-03 11:12:57 +1100 |
commit | ea3ffa52d4da2260b940cb269b4e4f51ecd6bc7b (patch) | |
tree | b711998e2cd1f7ddc340fb625fe9727c1de7a4f4 /hv.c | |
parent | b0b342d4b3fa61880a96b645a3dab648f7c4c682 (diff) | |
download | perl-ea3ffa52d4da2260b940cb269b4e4f51ecd6bc7b.tar.gz |
Revert "hv.h: rework HEK_FLAGS to a proper member in struct hek"
This reverts commit d3148f758506efd28325dfd8e1b698385133f0cd.
SV keys are stored as pointers in the key_key, on platforms with
alignment requirements (such as PA-RISC) this resulted in bus errors
early in the build.
Diffstat (limited to 'hv.c')
-rw-r--r-- | hv.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -80,7 +80,8 @@ S_save_hek_flags(const char *str, I32 len, U32 hash, int flags) HEK *hek; PERL_ARGS_ASSERT_SAVE_HEK_FLAGS; - Newx(k, HEK_BASESIZE + len + 1, char); + + Newx(k, HEK_BASESIZE + len + 2, char); hek = (HEK*)k; Copy(str, HEK_KEY(hek), len, char); HEK_KEY(hek)[len] = 0; |