mirror of
https://github.com/postgres/postgres.git
synced 2026-04-27 00:58:45 -04:00
Repair PQoidStatus() bug reported by darcy@druid.net.
This commit is contained in:
parent
85c17dbff8
commit
8558054aa4
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $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 $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
|
@ -2035,7 +2035,7 @@ PQoidStatus(const PGresult *res)
|
|||
if (len > 23)
|
||||
len = 23;
|
||||
strncpy(buf, res->cmdStatus + 7, len);
|
||||
buf[23] = '\0';
|
||||
buf[len] = '\0';
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue