summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2018-04-19 10:45:15 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2018-04-19 10:45:15 -0300
commite668507d36f8d299e5f04b4796cbbc1704f2c763 (patch)
treecc445c9b4d528131c544b1cad273ed162fe4fceb /src
parent7490ce725edd5b46f14fa8a449a97c9487c1d143 (diff)
Enlarge find_other_exec's meager fgets buffer
The buffer was 100 bytes long, which is barely sufficient when the version string gets longer (such as by configure --with-extra-version). Set it to MAXPGPATH. Author: Nikhil Sontakke Discussion: https://postgr.es/m/CAMGcDxfLfpYU_Jru++L6ARPCOyxr0W+2O3Q54TDi5XdYeU36ow@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/common/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/exec.c b/src/common/exec.c
index cdf20a60af2..10b5f07d68c 100644
--- a/src/common/exec.c
+++ b/src/common/exec.c
@@ -308,7 +308,7 @@ find_other_exec(const char *argv0, const char *target,
const char *versionstr, char *retpath)
{
char cmd[MAXPGPATH];
- char line[100];
+ char line[MAXPGPATH];
if (find_my_exec(argv0, retpath) < 0)
return -1;