diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-09-11 05:05:43 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-09-11 05:05:43 +0200 |
commit | 989c1bf333bfe7d37f22141a69b9bec0b1dfdd69 (patch) | |
tree | 1d51776e8e10e353df57b94561cdeb31d75c6cc4 /debian/patches/0105-Fix_path_handling_bug.patch | |
parent | 029b7c005d0e0dc0bf64fcd09d7d8b72c3a6b7dc (diff) |
New 0105-Fix_path_handling_bug.patchdebian/4.0.0-6
Diffstat (limited to 'debian/patches/0105-Fix_path_handling_bug.patch')
-rw-r--r-- | debian/patches/0105-Fix_path_handling_bug.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/0105-Fix_path_handling_bug.patch b/debian/patches/0105-Fix_path_handling_bug.patch new file mode 100644 index 0000000..de893b1 --- /dev/null +++ b/debian/patches/0105-Fix_path_handling_bug.patch @@ -0,0 +1,19 @@ +Description: Fix path handling bug +Author: Boris Kolpackov <boris@codesynthesis.com> +Origin: git commit b4c3242a763e0461f454cc29be28c2ab26e4a495 +Last-Update: 2016-09-10 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/xsd/examples/cxx/tree/embedded/xsdbin.cxx +=================================================================== +--- trunk.orig/xsd/examples/cxx/tree/embedded/xsdbin.cxx ++++ trunk/xsd/examples/cxx/tree/embedded/xsdbin.cxx +@@ -334,7 +334,7 @@ main (int argc, char* argv[]) + // + string::size_type p (base.rfind ('/')), p1 (base.rfind ('\\')); + +- if (p1 != string::npos && p1 > p) ++ if (p1 != string::npos && (p == string::npos || p1 > p)) + p = p1; + + if (p != string::npos) |