summaryrefslogtreecommitdiff
path: root/libpkgconf/fix-demunging-windows-paths.patch
blob: c9f11f6319c0c822ae6ac5e080985fdce7dc027a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libpkgconf/libpkgconf/pkg.c b/libpkgconf/libpkgconf/pkg.c
index 214f544..ba4fb5f 100644
--- a/libpkgconf/libpkgconf/pkg.c
+++ b/libpkgconf/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);