8000 Enlarge find_other_exec's meager fgets buffer · MSPawanRanjith/postgres@e2f3b65 · GitHub
[go: up one dir, main page]

Skip to content

Commit e2f3b65

Browse files
committed
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
1 parent 94a898f commit e2f3b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ find_other_exec(const char *argv0, const char *target,
308308
const char *versionstr, char *retpath)
309309
{
310310
char cmd[MAXPGPATH];
311-
char line[100];
311+
char line[MAXPGPATH];
312312

313313
if (find_my_exec(argv0, retpath) < 0)
314314
return -1;

0 commit comments

Comments
 (0)
0