summaryrefslogtreecommitdiff
path: root/libpkgconf/fix-demunging-windows-paths.patch
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-06-30 11:42:25 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-06-30 14:52:03 +0300
commit044ded722887357e4c9fff845e87c6db7e08f736 (patch)
treee7e5836b673b0589adae15ee2c1ea0b564416648 /libpkgconf/fix-demunging-windows-paths.patch
parenta881eefe7a5fe884e5b958bb2b861e58e90a044b (diff)
Upgrade to 1.7.31.7.3
Diffstat (limited to 'libpkgconf/fix-demunging-windows-paths.patch')
-rw-r--r--libpkgconf/fix-demunging-windows-paths.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/libpkgconf/fix-demunging-windows-paths.patch b/libpkgconf/fix-demunging-windows-paths.patch
new file mode 100644
index 0000000..c9f11f6
--- /dev/null
+++ b/libpkgconf/fix-demunging-windows-paths.patch
@@ -0,0 +1,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);