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 Commits (master)

Author SHA1 Message Date
Christoph Reiter 03d429f13d pkgconf_pkg_parser_version_func: fix whitespace detection
In case the version string has no whitespace then strcspn() returns
strlen() of the input, so whitespace is only found if len != strlen.

This fixes invalid warnings when parsing version fields.
2020-11-28 16:04:08 +01:00