fragment: fix off-by-one error in pkgconf_fragment_render_len()

pull/100/head
William Pitcock 2016-12-10 15:47:21 -06:00
parent d6d7ff775a
commit 0ae2d8e5de
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ pkgconf_fragment_filter(const pkgconf_client_t *client, pkgconf_list_t *dest, pk
size_t
pkgconf_fragment_render_len(const pkgconf_list_t *list)
{
size_t out = 0;
size_t out = 1; /* trailing nul */
pkgconf_node_t *node;
PKGCONF_FOREACH_LIST_ENTRY(list->head, node)