Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6cba71 commit 2597056Copy full SHA for 2597056
src/port/path.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/port/path.c,v 1.19 2004/06/10 22:26:24 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/path.c,v 1.20 2004/06/11 17:09:13 momjian Exp $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -252,7 +252,7 @@ set_pglocale_pgservice(const char *argv0, const char *app)
252
{
253
char path[MAXPGPATH];
254
char my_exec_path[MAXPGPATH];
255
- char env_path[MAXPGPATH + strlen("PGLOCALEDIR=")]; /* longer than PGSYSCONFDIR */
+ char env_path[MAXPGPATH + sizeof("PGLOCALEDIR=")]; /* longer than PGSYSCONFDIR */
256
257
/* don't set LC_ALL in the backend */
258
if (strcmp(app, "postgres") != 0)
0 commit comments