diff --git a/.gitignore b/.gitignore index 8d846866a..d61e17ebd 100755 --- a/.gitignore +++ b/.gitignore @@ -423,3 +423,9 @@ iguana/a iguana/t iguana/stats + +iguana/DEXstats + +iguana/DEXstats.dSYM/Contents/Info.plist + +iguana/DEXstats.dSYM/Contents/Resources/DWARF/DEXstats diff --git a/iguana/exchanges/DEXstats.h b/iguana/exchanges/DEXstats.h index 4c426981f..110566846 100644 --- a/iguana/exchanges/DEXstats.h +++ b/iguana/exchanges/DEXstats.h @@ -101,7 +101,7 @@ void stats_datenumupdate(struct DEXstats_priceinfo *pp,int32_t datenum,int32_t h printf("illegal datenum.%d for %s when 1st.%d\n",datenum,pp->symbol,pp->firstdatenum); return; } - if ( offset > pp->numdates ) + if ( offset >= pp->numdates ) { pp->dates = realloc(pp->dates,sizeof(*pp->dates) * (offset+1)); n = (offset - pp->numdates);