# HG changeset patch # User Christophe Lincoln # Date 1249566820 -7200 # Node ID 55987a3e21960660b470ce4a9e335f939e523799 # Parent 6c3da1c43b30e6e44a58b81804df5d0b9959a1df Fix: encfs cook with gcc 4.4 serie diff -r 6c3da1c43b30 -r 55987a3e2196 encfs/receipt --- a/encfs/receipt Thu Aug 06 15:40:03 2009 +0200 +++ b/encfs/receipt Thu Aug 06 15:53:40 2009 +0200 @@ -17,6 +17,7 @@ { mv $PACKAGE-${VERSION%-*} $src 2> /dev/null cd $src + patch -p0 < ../stuff/gcc44.patch || exit 1 ./configure --prefix=/usr $CONFIGURE_ARGS && make && make DESTDIR=$src/_pkg install diff -r 6c3da1c43b30 -r 55987a3e2196 encfs/stuff/gcc44.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/encfs/stuff/gcc44.patch Thu Aug 06 15:53:40 2009 +0200 @@ -0,0 +1,11 @@ +--- encfs/NameIO.cpp Wed Aug 6 08:35:05 2008 ++++ encfs/NameIO.cpp Thu Aug 6 15:43:41 2009 +@@ -190,7 +190,7 @@ + } else + { + bool isDotFile = (*path == '.'); +- char *next = strchr( path, '/' ); ++ const char *next = strchr( path, '/' ); + int len = next ? next - path : strlen( path ); + + // at this point we know that len > 0