r18345 - gnucash/trunk/packaging/win32 - Win32 build: gwenhywfar needs another patch
Christian Stimming
cstim at code.gnucash.org
Thu Sep 24 16:45:21 EDT 2009
Author: cstim
Date: 2009-09-24 16:45:21 -0400 (Thu, 24 Sep 2009)
New Revision: 18345
Trac: http://svn.gnucash.org/trac/changeset/18345
Modified:
gnucash/trunk/packaging/win32/gwenhywfar-3.11.1-patch.diff
Log:
Win32 build: gwenhywfar needs another patch
Modified: gnucash/trunk/packaging/win32/gwenhywfar-3.11.1-patch.diff
===================================================================
--- gnucash/trunk/packaging/win32/gwenhywfar-3.11.1-patch.diff 2009-09-24 20:12:41 UTC (rev 18344)
+++ gnucash/trunk/packaging/win32/gwenhywfar-3.11.1-patch.diff 2009-09-24 20:45:21 UTC (rev 18345)
@@ -108,6 +108,25 @@
p=s;
while(*p && *p!='?')
p++;
+diff --git a/plugins/configmgr/dir/cfgdir.c b/plugins/configmgr/dir/cfgdir.c
+index 7b89933..e44ac9a 100644
+--- a/plugins/configmgr/dir/cfgdir.c
++++ b/plugins/configmgr/dir/cfgdir.c
+@@ -102,8 +102,13 @@ GWEN_CONFIGMGR *GWEN_ConfigMgrDir_new(const char *url) {
+ GWEN_Buffer_AppendString(nbuf, s);
+ s=GWEN_Url_GetPath(gurl);
+ if (s) {
+- if (*s!='/' && *s!='\\')
++ /* Does this begin with a slash? If not, we add one, but only if
++ this isn't a drive letter (for windows!) */
++ if (*s!='/' && *s!='\\'
++ && !(isalpha(s[0]) && s[1] == ':'
++ && (s[2] == '/' || s[2] == '\\'))) {
+ GWEN_Buffer_AppendString(nbuf, GWEN_DIR_SEPARATOR_S);
++ }
+ GWEN_Buffer_AppendString(nbuf, s);
+ }
+ xcfg->folder=strdup(GWEN_Buffer_GetStart(nbuf));
--
1.6.1.rc3.51.g5832d
More information about the gnucash-changes
mailing list