diff --git a/src/komodo.h b/src/komodo.h index 09783fe2e..857f63efd 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -19,6 +19,7 @@ #include #include #include +#include #include "uthash.h" #include "komodo_interest.h" @@ -481,9 +482,12 @@ void komodo_pvals(int32_t height,uint32_t *pvals,uint8_t numpvals) } } -int32_t komodo_baseid(char *base) +int32_t komodo_baseid(char *origbase) { - int32_t i; + int32_t i; char base[64]; + for (i=0; origbase[i]!=0&&i