Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94a898f
)
Enlarge find_other_exec's meager fgets buffer
author
Alvaro Herrera
<alvherre@alvh.no-ip.org>
Thu, 19 Apr 2018 13:45:15 +0000
(10:45 -0300)
committer
Alvaro Herrera
<alvherre@alvh.no-ip.org>
Thu, 19 Apr 2018 13:45:15 +0000
(10:45 -0300)
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
src/common/exec.c
patch
|
blob
|
blame
|
history
diff --git
a/src/common/exec.c
b/src/common/exec.c
index 67bf4d1d79c9a3a3bbd5b15237f29ff8cf4bc8cf..878fc29bc1ae1e61deb6ba6576b40ba0d20292ed 100644
(file)
--- 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;