Not sure how I fixed it the first time, but here's a fix for anotherinstance in which the docs mention that 'NAMEDATALEN == 32".
Cheers,
Neil
-- Neil Conway <neilc(at)samurai(dot)com> || PGP Key ID: DB3C29FC