mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
Fix new warnings from GCC 7
This addresses the new warning types -Wformat-truncation -Wformat-overflow that are part of -Wall, via -Wformat, in GCC 7.
This commit is contained in:
4
src/backend/utils/cache/relcache.c
vendored
4
src/backend/utils/cache/relcache.c
vendored
@@ -4659,7 +4659,7 @@ RelationCacheInitFileRemove(void)
|
||||
const char *tblspcdir = "pg_tblspc";
|
||||
DIR *dir;
|
||||
struct dirent *de;
|
||||
char path[MAXPGPATH];
|
||||
char path[MAXPGPATH + 10 + sizeof(TABLESPACE_VERSION_DIRECTORY)];
|
||||
|
||||
/*
|
||||
* We zap the shared cache file too. In theory it can't get out of sync
|
||||
@@ -4701,7 +4701,7 @@ RelationCacheInitFileRemoveInDir(const char *tblspcpath)
|
||||
{
|
||||
DIR *dir;
|
||||
struct dirent *de;
|
||||
char initfilename[MAXPGPATH];
|
||||
char initfilename[MAXPGPATH * 2];
|
||||
|
||||
/* Scan the tablespace directory to find per-database directories */
|
||||
dir = AllocateDir(tblspcpath);
|
||||
|
Reference in New Issue
Block a user