The following commit has been merged in the master branch:
commit 8e5c0399910509951c7a5cf9380fe41d3b3083a9
Author: Guillem Jover <guil...@debian.org>
Date:   Sun Jul 25 17:07:33 2010 +0200

    libdpkg: Fix bogus handling of '\\' in path_quote_filename
    
    When quoting backslash, the code was not advancing the source, so the
    destination was getting repeated backslashes until the buffer was full.

diff --git a/lib/dpkg/path.c b/lib/dpkg/path.c
index c4ee2ee..76e9833 100644
--- a/lib/dpkg/path.c
+++ b/lib/dpkg/path.c
@@ -118,6 +118,7 @@ path_quote_filename(char *dst, const char *src, size_t n)
                case '\\':
                        *dst++ = '\\';
                        *dst++ = '\\';
+                       src++;
                        size -= 2;
                        break;
                default:

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to