In gnamef.c, the final assignment to filename[NAMESIZE] should be to filename[NAMESIZE-1]. The original assignment stomps the first byte of whatever follows the array being set. Ghod only knows why this didn't cause trouble; I found it while investigating another problem.