Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8804bdc

Browse files
author
Hiroshi Inoue
committed
Corrected the check for *message truncated* for the future use.
1 parent 76d38cb commit 8804bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/odbc/socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ SOCK_get_string(SocketClass *self, char *buffer, int bufsize)
202202
{
203203
register int lf = 0;
204204

205-
for (lf = 0; lf < bufsize; lf++)
205+
for (lf = 0; lf < bufsize - 1; lf++)
206206
if (!(buffer[lf] = SOCK_get_next_byte(self)))
207207
return FALSE;
208208

0 commit comments

Comments
 (0)