From 8804bdcd0ebbdcf3cb5d594716a8fe398259a56f Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Tue, 19 Jun 2001 03:17:12 +0000 Subject: [PATCH] Corrected the check for *message truncated* for the future use. --- src/interfaces/odbc/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/odbc/socket.c b/src/interfaces/odbc/socket.c index de695058b9..243df4a501 100644 --- a/src/interfaces/odbc/socket.c +++ b/src/interfaces/odbc/socket.c @@ -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; -- 2.40.0