wok diff encfs/stuff/gcc44.patch @ rev 5036

cyrus-imapd: fix paths
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 03 17:48:04 2010 +0100 (2010-03-03)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/encfs/stuff/gcc44.patch	Wed Mar 03 17:48:04 2010 +0100
     1.3 @@ -0,0 +1,11 @@
     1.4 +--- encfs/NameIO.cpp	Wed Aug  6 08:35:05 2008
     1.5 ++++ encfs/NameIO.cpp	Thu Aug  6 15:43:41 2009
     1.6 +@@ -190,7 +190,7 @@
     1.7 + 	} else
     1.8 + 	{
     1.9 + 	    bool isDotFile = (*path == '.');
    1.10 +-	    char *next = strchr( path, '/' );
    1.11 ++	    const char *next = strchr( path, '/' );
    1.12 + 	    int len = next ? next - path : strlen( path );
    1.13 +
    1.14 + 	    // at this point we know that len > 0