fix a blooper discovered by nano

This commit is contained in:
Bill Currie 2004-02-20 20:35:13 +00:00
parent f94b0b3800
commit f4a06f3a37
1 changed files with 1 additions and 1 deletions

View File

@ -1946,7 +1946,7 @@ OutofBandPrintf (netadr_t where, const char *fmt, ...)
send[3] = 0xff;
send[4] = A2C_PRINT;
va_start (argptr, fmt);
vsnprintf (send + 5, sizeof (send - 5), fmt, argptr);
vsnprintf (send + 5, sizeof (send) - 5, fmt, argptr);
va_end (argptr);
Netchan_SendPacket (strlen (send) + 1, send, where);