10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85c17db commit 8558054Copy full SHA for 8558054
src/interfaces/libpq/fe-exec.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.98 2001/01/24 19:43:30 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.99 2001/02/06 02:00:09 tgl Exp $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -2035,7 +2035,7 @@ PQoidStatus(const PGresult *res)
2035
if (len > 23)
2036
len = 23;
2037
strncpy(buf, res->cmdStatus + 7, len);
2038
- buf[23] = '\0';
+ buf[len] = '\0';
2039
2040
return buf;
2041
}
0 commit comments