diff options
| author | Bruce Momjian | 1999-02-02 23:53:26 +0000 |
|---|---|---|
| committer | Bruce Momjian | 1999-02-02 23:53:26 +0000 |
| commit | 4090d17fee7f6028e6e969d1a32d84fed67803e4 (patch) | |
| tree | b5c5e30978e93433c853123f2ded048ee3d336e8 /src/include | |
| parent | f1b78234716bd639b045873c7be0c9424b897f16 (diff) | |
SET_ARGS cleanup
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/utils/ps_status.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/ps_status.h b/src/include/utils/ps_status.h index 11d64cdb4dc..28a90170fe4 100644 --- a/src/include/utils/ps_status.h +++ b/src/include/utils/ps_status.h @@ -31,6 +31,7 @@ char *ps_status_buffer = NULL; ps_status_buffer = (argv)[0]; \ sprintf(ps_status_buffer, "%s %s %s %s ", execname, username, hostname, dbname); \ ps_status_buffer += strlen(ps_status_buffer); \ + ps_status_buffer[0] = '\0'; \ } #define PS_CLEAR_STATUS() \ @@ -41,7 +42,7 @@ char *ps_status_buffer = NULL; if (ps_status_buffer) \ { \ PS_CLEAR_STATUS(); \ - strcat(ps_status_buffer, status); \ + strcpy(ps_status_buffer, status); \ } \ } |
