diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-06-11 17:09:13 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-06-11 17:09:13 +0000 |
commit | 2597056cc34ac3d280d47a57ee7a82f3fdb2e0f2 (patch) | |
tree | f6f042b16af8fff24df06cf4908854770fc04155 /src | |
parent | e6cba71503fa80948a050e7e0126e932855e92cc (diff) |
Use sizeof() rather than strlen() in array size.
Diffstat (limited to 'src')
-rw-r--r-- | src/port/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/port/path.c b/src/port/path.c index 864cb1e3a6a..1f2eb025785 100644 --- a/src/port/path.c +++ b/src/port/path.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $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 $ * *------------------------------------------------------------------------- */ @@ -252,7 +252,7 @@ set_pglocale_pgservice(const char *argv0, const char *app) { char path[MAXPGPATH]; char my_exec_path[MAXPGPATH]; - char env_path[MAXPGPATH + strlen("PGLOCALEDIR=")]; /* longer than PGSYSCONFDIR */ + char env_path[MAXPGPATH + sizeof("PGLOCALEDIR=")]; /* longer than PGSYSCONFDIR */ /* don't set LC_ALL in the backend */ if (strcmp(app, "postgres") != 0) |