|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $PostgreSQL: pgsql/src/port/path.c,v 1.19 2004/06/10 22:26:24 momjian Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/port/path.c,v 1.20 2004/06/11 17:09:13 momjian Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
@@ -252,7 +252,7 @@ set_pglocale_pgservice(const char *argv0, const char *app)
|
252 | 252 | {
|
253 | 253 | charpath[MAXPGPATH];
|
254 | 254 | charmy_exec_path[MAXPGPATH];
|
255 |
| -charenv_path[MAXPGPATH+strlen("PGLOCALEDIR=")];/* longer than PGSYSCONFDIR */ |
| 255 | +charenv_path[MAXPGPATH+sizeof("PGLOCALEDIR=")];/* longer than PGSYSCONFDIR */ |
256 | 256 |
|
257 | 257 | /* don't set LC_ALL in the backend */
|
258 | 258 | if (strcmp(app,"postgres")!=0)
|
|