1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03: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:
Bruce Momjian
2012-01-25 09:35:17 -05:00
parent fa4dad6cc0
commit e96fcb06b9

View File

@ -224,7 +224,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;
/*
@ -261,7 +261,6 @@ check_loadable_libraries(void)
}
PQclear(res);
pg_free(cmd);
}
PQfinish(conn);