diff --git a/apps/database.c b/apps/database.c index 1258b94c30..0d562d549b 100644 --- a/apps/database.c +++ b/apps/database.c @@ -79,7 +79,7 @@ int tagdb_init(void) #ifdef LITTLE_ENDIAN p=(int *)&tagdbheader; for(i=0;i<17;i++) { - *p=BE32(p); + *p=BE32(*p); p++; } #endif diff --git a/apps/dbtree.c b/apps/dbtree.c index 187cb618c1..61879e32f1 100644 --- a/apps/dbtree.c +++ b/apps/dbtree.c @@ -168,7 +168,7 @@ int db_load(struct tree_context* c) return -1; #ifdef LITTLE_ENDIAN - for (i=0; i