summaryrefslogtreecommitdiff
path: root/lib/hashtable.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-12-15 17:47:28 -0500
committerTom Rini <trini@konsulko.com>2018-12-15 17:47:28 -0500
commit0dc526d98eb216003ea884739abc17f6eb05c0df (patch)
tree918155725e45773124d7b61cb61f6a78e3d8845d /lib/hashtable.c
parent8fc26fce41592175ae004514e431e68a9dd60671 (diff)
parentde5bab9c59807b109f89a39855c9eacfe4d08822 (diff)
Merge branch '2018-12-15-master-imports'
- Introduce tools-only build for host tools - Bugfixes to poplar, syscon and the hashtable, a tee return code - Fix a warning on gcc-8 by reworking part of mtk_image to be not unsafe wrt strings. - serial_stm32 reset support
Diffstat (limited to 'lib/hashtable.c')
-rw-r--r--lib/hashtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hashtable.c b/lib/hashtable.c
index 1c48692b69e..93028ed83b2 100644
--- a/lib/hashtable.c
+++ b/lib/hashtable.c
@@ -662,7 +662,7 @@ ssize_t hexport_r(struct hsearch_data *htab, const char sep, int flag,
return (-1);
}
} else {
- size = totlen;
+ size = totlen + 1;
}
/* Check if the user provided a buffer */