mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +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:
@ -2515,7 +2515,7 @@ StartupReorderBuffer(void)
|
||||
while ((logical_de = ReadDir(logical_dir, "pg_replslot")) != NULL)
|
||||
{
|
||||
struct stat statbuf;
|
||||
char path[MAXPGPATH];
|
||||
char path[MAXPGPATH * 2 + 12];
|
||||
|
||||
if (strcmp(logical_de->d_name, ".") == 0 ||
|
||||
strcmp(logical_de->d_name, "..") == 0)
|
||||
|
Reference in New Issue
Block a user