Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcea5f9a

Browse files
committed
Enlarge find_other_exec's meager fgets buffer
The buffer was 100 bytes long, which is barely sufficient when theversion string gets longer (such as by configure --with-extra-version).Set it to MAXPGPATH.Author: Nikhil SontakkeDiscussion:https://postgr.es/m/CAMGcDxfLfpYU_Jru++L6ARPCOyxr0W+2O3Q54TDi5XdYeU36ow@mail.gmail.com
1 parentff49430 commitcea5f9a

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
constchar*versionstr,char*retpath)
309309
{
310310
charcmd[MAXPGPATH];
311-
charline[100];
311+
charline[MAXPGPATH];
312312

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp