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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy