commit | 305ad7a04973898c8c2c47df5f517ac24d769133 | [log] [tgz] |
---|---|---|
author | Zubair Lutfullah Kakakhel <zubair@resin.io> | Tue Jul 17 19:25:38 2018 +0100 |
committer | Tom Rini <trini@konsulko.com> | Tue Jul 24 09:25:23 2018 -0400 |
tree | 4f23c54ccb165181f5516e63353e5235dee5be56 | |
parent | ceb54dc0a96c29a728b108240baf5c7bcc747bda [diff] |
hashtable: Fix length calculation in hexport_r The length returned by hexport_r has a few redundant characters. This appears as NULL characters at the end so seems harmless. Remove the surplus counts in two places totlen += strlen(ep->key) + 2; I'm guessing the +2 here is for = and sep char. But there is another totlen += 2; line that does that. size = totletn + 1; Doesn't make sense and isn't justified with any comment. Signed-off-by: Zubair Lutfullah Kakakhel <zubair@resin.io>