Fix buffer overflow in queue file handling.
Fix buffer overflow in queue file handling.

Submitted by:	millert@openbsd.org, gad
Reported by:	X-Force <xforce@iss.net>

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase