From fe3e8c0e201f8216deb020fa1bc9e219ae978e2a Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 15 Mar 2017 17:29:54 +0200 Subject: [PATCH] Make windows specific path --- iguana/iguana_chains.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_chains.c b/iguana/iguana_chains.c index 7b610fbea..4fc5a0b76 100755 --- a/iguana/iguana_chains.c +++ b/iguana/iguana_chains.c @@ -232,9 +232,12 @@ void set_coinconfname(char *fname,char *coinstr,char *userhome,char *coindir,cha sprintf(confname,"%s.conf",buf); } printf("userhome.(%s) coindir.(%s) confname.(%s)\n",userhome,coindir,confname); - if ( userhome != 0 && userhome[0] != 0 ) +#ifdef WIN32 + if ( userhome == 0 || userhome[0] == 0 ) + sprintf(fname,"%s/%s",coindir,confname); + else +#endif sprintf(fname,"%s/%s/%s",userhome,coindir,confname); - else sprintf(fname,"%s/%s",coindir,confname); } uint16_t extract_userpass(char *serverport,char *userpass,char *coinstr,char *userhome,char *coindir,char *confname)