]> git.wh0rd.org Git - fontconfig.git/commitdiff
[win32] Do not remove leading '\\' such that network paths work
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 4 Feb 2009 01:50:29 +0000 (20:50 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Sun, 15 Feb 2009 21:40:24 +0000 (13:40 -0800)
Raised by Diego Santa Cruz.

src/fcstr.c

index dc7807d2efe199d0e123545958f7a0f6a13f88d1..2f2cd4dfd0dc6b2c6857d4bd0497006e7a76b250 100644 (file)
@@ -943,7 +943,13 @@ FcConvertDosPath (char *str)
   char *dest = str;
   char *end = str + len;
   char last = 0;
-  
+
+  if (*p == '\\')
+    {
+      *p = '/';
+      p++;
+      dest++;
+    }
   while (p < end)
     {
       if (*p == '\\')