This commit is contained in:
jl777
2016-11-19 18:33:04 -03:00
parent 609fbcc266
commit 4961e57b81

View File

@@ -1363,12 +1363,13 @@ int32_t komodo_userpass(char *userpass,char *symbol)
sprintf(confname,"komodo.conf");
else sprintf(confname,"%s.conf",symbol);
komodo_statefname(fname,symbol,confname);
//printf("[%s] conf.(%s)\n",symbol,fname);
printf("[%s] conf.(%s)\n",symbol,fname);
if ( (fp= fopen(fname,"rb")) != 0 )
{
komodo_userpass(username,password,fp);
sprintf(userpass,"%s:%s",username,password);
fclose(fp);
printf("[%s] conf.(%s) %s\n",symbol,fname,userpass);
return((int32_t)strlen(userpass));
}
return(-1);