Corrected the check for *message truncated* for the future use.

This commit is contained in:
Hiroshi Inoue 2001-06-19 03:17:12 +00:00
parent 76d38cb0c6
commit 8804bdcd0e
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ SOCK_get_string(SocketClass *self, char *buffer, int bufsize)
{
register int lf = 0;
for (lf = 0; lf < bufsize; lf++)
for (lf = 0; lf < bufsize - 1; lf++)
if (!(buffer[lf] = SOCK_get_next_byte(self)))
return FALSE;