This commit is contained in:
jl777
2016-11-19 15:05:27 -03:00
parent 67cd296f20
commit 0e0a794b43
2 changed files with 4 additions and 4 deletions

View File

@@ -574,7 +574,7 @@ void komodo_passport_iteration()
komodo_nameset(symbol,dest,base); komodo_nameset(symbol,dest,base);
if ( (fp= fopen(fname,"rb")) != 0 && (sp= komodo_stateptrget(symbol)) != 0 ) if ( (fp= fopen(fname,"rb")) != 0 && (sp= komodo_stateptrget(symbol)) != 0 )
{ {
printf("refid.%d %s fname.(%s)\n",refid,symbol,fname); printf("refid.%d %s fname.(%s) base.%s\n",refid,symbol,fname,base);
fseek(fp,0,SEEK_END); fseek(fp,0,SEEK_END);
if ( ftell(fp) > lastpos[baseid] ) if ( ftell(fp) > lastpos[baseid] )
{ {

View File

@@ -1265,10 +1265,10 @@ void komodo_statefname(char *fname,char *symbol)
{ {
int32_t n,len; int32_t n,len;
sprintf(fname,"%s",GetDataDir(false).string().c_str()); sprintf(fname,"%s",GetDataDir(false).string().c_str());
if ( (n= (int32_t)strlen(ASSETCHAINS_SYMBOL)) != 0 ) if ( (n= (int32_t)strlen(symbol)) != 0 )
{ {
len = (int32_t)strlen(fname); len = (int32_t)strlen(fname);
if ( strcmp(ASSETCHAINS_SYMBOL,&fname[len - n]) == 0 ) if ( strcmp(symbol,&fname[len - n]) == 0 )
{ {
fname[len - n] = 0; fname[len - n] = 0;
if ( symbol[0] != 0 ) if ( symbol[0] != 0 )
@@ -1276,7 +1276,7 @@ void komodo_statefname(char *fname,char *symbol)
} }
else else
{ {
printf("unexpected fname.(%s) vs %s\n",fname,ASSETCHAINS_SYMBOL); printf("unexpected fname.(%s) vs %s\n",fname,symbol);
return; return;
} }
} }