$NetBSD: patch-by,v 1.1 2008/08/31 06:52:29 dholland Exp $ --- server/hash.c~ 1997-12-15 12:12:11.000000000 -0500 +++ server/hash.c 2008-08-31 01:33:36.000000000 -0400 @@ -36,6 +36,9 @@ * All tables are actually two tables, a map and an inverse map. * * * ************************************************************************/ +#include +#include +#include #include "xmx.h" #include "df.h" @@ -565,7 +568,7 @@ hash_print warn("\t[%04d]", i); for (ep=tab->map[i]; ep; ep=ep->next) { if (ep->data) - sprintf(dbuf, ",0x%x", ep->data); + snprintf(dbuf, sizeof(dbuf), ",0x%x", ep->data); else strcpy(dbuf, ""); warn(" {%x,%x%s%s}", ep->key, ep->val, ep->mark ? ",MARK":"", dbuf); @@ -579,7 +582,7 @@ hash_print warn("\t[%04d]", i); for (ep=tab->unmap[i]; ep; ep=ep->next) { if (ep->data) - sprintf(dbuf, ",0x%x", ep->data); + snprintf(dbuf, sizeof(dbuf), ",0x%x", ep->data); else strcpy(dbuf, ""); warn(" {%x,%x%s%s}", ep->key, ep->val, ep->mark ? ",MARK":"", dbuf);