Index: xvfs-create-c.c ================================================================== --- xvfs-create-c.c +++ xvfs-create-c.c @@ -238,11 +238,11 @@ fprintf(outfp, "\tstatic const long pathIndex_hashTable_%i[] = {\n", idx1); fprintf(outfp, "\t\t"); first_entry = 1; for (idx2 = 0; idx2 < xvfs_state->child_count; idx2++) { - check_hash = adler32(0, xvfs_state->children[idx2], strlen(xvfs_state->children[idx2])) % bucket_count; + check_hash = adler32(0, (unsigned char *) xvfs_state->children[idx2], strlen(xvfs_state->children[idx2])) % bucket_count; if (check_hash != idx1) { continue; } if (!first_entry) { @@ -410,10 +410,12 @@ break; } } #undef parse_xvfs_minirivet_getbyte + + fclose(fp); return(1); } static int xvfs_create(FILE *outfp, const struct options * const options) {