Skip to content

Commit cea5f9a

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 ff49430 commit cea5f9a

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy