From ab404bc25b94b638ee2d5bb7047e03b28da71787 Mon Sep 17 00:00:00 2001 From: Ryan Scott Date: Wed, 3 Feb 2021 06:54:52 -0500 Subject: [PATCH] Fix #209 This commit fixes #209 by applying the suggestion from https://github.com/pkgconf/pkgconf/issues/209#issuecomment-771609136. --- libpkgconf/pkg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpkgconf/pkg.c b/libpkgconf/pkg.c index 02c990d..f302df3 100644 --- a/libpkgconf/pkg.c +++ b/libpkgconf/pkg.c @@ -391,7 +391,7 @@ pkgconf_pkg_new_from_file(pkgconf_client_t *client, const char *filename, FILE * */ char *mungeptr; if ((mungeptr = strrchr(idptr, '/')) != NULL) - idptr = mungeptr++; + idptr = ++mungeptr; #endif pkg->id = strdup(idptr);