1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-27 00:12:01 +03:00

Fix memory overrun while setting ps status

This commit is contained in:
Tatsuo Ishii
1999-12-10 10:29:01 +00:00
parent 18c3000286
commit d31ff14ed8
2 changed files with 15 additions and 9 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.38 1999/10/08 04:28:48 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.39 1999/12/10 10:29:01 ishii Exp $
*
* NOTES
* Globals used all over the place should be declared here and not
@@ -88,6 +88,13 @@ char *IndexedCatalogNames[] = {
};
/*
* ps status buffer
*/
#ifndef linux
char Ps_status_buffer[1024];
#endif
/* ----------------
* we just do a linear search now so there's no requirement that the list
* be ordered. The list is so small it shouldn't make much difference.