pkgconf_pkg_parser_version_func: fix whitespace detection #204

Merged
lazka merged 1 commits from fix-version-whitespace-detect into master 2020-11-29 02:17:04 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ pkgconf_pkg_parser_version_func(const pkgconf_client_t *client, pkgconf_pkg_t *p
p = pkgconf_tuple_parse(client, &pkg->vars, value);
len = strcspn(p, " \t");
if (len)
if (len != strlen(p))
{
i = p + (ptrdiff_t) len;
*i = '\0';