Commit 8804bdcd authored by Hiroshi Inoue's avatar Hiroshi Inoue

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

parent 76d38cb0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment