Browse Source

Make windows specific path

etomic
jl777 8 years ago
parent
commit
fe3e8c0e20
  1. 7
      iguana/iguana_chains.c

7
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); sprintf(confname,"%s.conf",buf);
} }
printf("userhome.(%s) coindir.(%s) confname.(%s)\n",userhome,coindir,confname); 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); 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) uint16_t extract_userpass(char *serverport,char *userpass,char *coinstr,char *userhome,char *coindir,char *confname)

Loading…
Cancel
Save