mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Now that the shared library name can be adjusted in the library test,
have pg_upgrade allocate a maximum fixed size buffer for testing the library file name, rather than base the allocation on the library name. Backpatch to 9.1.
This commit is contained in:
parent
a7f2c79a6e
commit
6d5aae7afa
@ -225,7 +225,7 @@ check_loadable_libraries(void)
|
||||
{
|
||||
char *lib = os_info.libraries[libnum];
|
||||
int llen = strlen(lib);
|
||||
char *cmd = (char *) pg_malloc(8 + 2 * llen + 1);
|
||||
char cmd[7 + 2 * MAXPGPATH + 1];
|
||||
PGresult *res;
|
||||
|
||||
/*
|
||||
@ -266,7 +266,6 @@ check_loadable_libraries(void)
|
||||
}
|
||||
|
||||
PQclear(res);
|
||||
pg_free(cmd);
|
||||
}
|
||||
|
||||
PQfinish(conn);
|
||||
|
Loading…
Reference in New Issue
Block a user