heretic: Eliminate use of sprintf().

Use snprintf() in place of sprintf(). This is part of fixing #371.
hexen: Eliminate use of sprintf().

Use snprintf() in place of sprintf(). This is part of fixing #371.
strife: Eliminate use of sprintf().

Use snprintf() in place of sprintf(). This is part of fixing #371.