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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user