Hi again,

I realized that my vim indent was hidding the through from me,
I hope this is better now, tell me if not.

This patch fixes this issue I was experiencing too.

regards
Jérémy

On Monday 12 November 2012  20:50, Brian 'morlenxus' Miculcy wrote :
> Just a short notice:
> 
> Latest e svn (79190) build restores default configuration on each e 
> restart. Spankies! :)
> 
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

diff --git a/eina/src/lib/eina_file.c b/eina/src/lib/eina_file.c
index ea17b95..85e19ec 100644
--- a/eina/src/lib/eina_file.c
+++ b/eina/src/lib/eina_file.c
@@ -560,19 +560,22 @@ _eina_file_escape(const char *path, int *length)
                      ++p;
                   }
            }
-        // remove '/./'
-        else if (p[2] == '/')
-          {
-             len -= p + 2 - q;
-             memmove(q, p + 2, len - (q - result));
-             result[len] = '\0';
-             p = q;
-          }
          else
-           {
-              q = p;
-              ++p;
-           }
+           if (p[1] == '.'
+                && p[2] == '/')
+              {
+                 // remove '/./'
+                 len -= 2;
+                 memmove(p, p + 2, len - (p - result));
+                 result[len] = '\0';
+                 q = p;
+                 ++p;
+              }
+            else
+              {
+                 q = p;
+                 ++p;
+              }
      }
 
    if (length)
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to