summaryrefslogtreecommitdiff
path: root/Src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 2b0e7faea..57a5e6771 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -3311,15 +3311,12 @@ getkeystring(char *s, int *len, int fromwhere, int *misc)
char *inptr, *outptr;
# endif
size_t count;
- size_t buflen = MB_LEN_MAX * (strlen(s) / 6) + (strlen(s) % 6) + 1;
-#else
- size_t buflen = strlen(s) + 1;
#endif
if (fromwhere == 6)
t = buf = tmp;
else if (fromwhere != 4)
- t = buf = zhalloc(buflen);
+ t = buf = zhalloc(strlen(s) + 1);
else {
t = buf = s;
s += 2;