diff options
author | Alvaro Herrera | 2018-04-19 13:45:15 +0000 |
---|---|---|
committer | Alvaro Herrera | 2018-04-19 13:45:15 +0000 |
commit | cea5f9aa1244a6a803481f7e21a86e7e7037a9a5 (patch) | |
tree | 2c10e6b270890ce92a8fb22edca14e0d8b45b856 | |
parent | ff4943042f9761fb4e84432da563f43eb3559a3b (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
-rw-r--r-- | src/common/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/exec.c b/src/common/exec.c index e3e81c1db8..4df16cd64b 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; |