Corrected the check for *message truncated* for the future use.
This commit is contained in:
parent
76d38cb0c6
commit
8804bdcd0e
@ -202,7 +202,7 @@ SOCK_get_string(SocketClass *self, char *buffer, int bufsize)
|
|||||||
{
|
{
|
||||||
register int lf = 0;
|
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)))
|
if (!(buffer[lf] = SOCK_get_next_byte(self)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user