diff --git a/src/d_netfil.c b/src/d_netfil.c
index 4dcd3da4a64207620e6f3c86fecf648be430a079..989d20db929e57c327502851ad85ca1c0c42774c 100644
--- a/src/d_netfil.c
+++ b/src/d_netfil.c
@@ -130,7 +130,7 @@ UINT8 *PutFileNeeded(UINT16 firstfile)
 
 		nameonly(strcpy(wadfilename, wadfiles[i]->filename));
 
-		if (p + 1 + 4 + strlen(wadfilename) + 16 > p_start + MAXFILENEEDED)
+		if (p + 1 + 4 + strlen(wadfilename) + 1 + 16 > p_start + MAXFILENEEDED)
 		{
 			// Too many files to send all at once
 			if (netbuffer->packettype == PT_MOREFILESNEEDED)