diff options
author | Andres Freund <andres@anarazel.de> | 2017-09-19 16:39:18 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2017-09-19 16:41:07 -0700 |
commit | 896537f078ba4d709ce754ecaff8350fd55bdfd8 (patch) | |
tree | 5b51dd21cd35c3304a60a9c50f0fef71004b84c7 /src | |
parent | f41e56c76e39f02bef7ba002c9de03d62b76de4d (diff) | |
download | postgresql-896537f078ba4d709ce754ecaff8350fd55bdfd8.tar.gz postgresql-896537f078ba4d709ce754ecaff8350fd55bdfd8.zip |
s/NULL byte/NUL byte/ in comment refering to C string terminator.
Reported-By: Robert Haas
Discussion: https://postgr.es/m/CA+Tgmoa+YBvWgFST2NVoeXjVSohEpK=vqnVCsoCkhTVVxfLcVQ@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/pgstat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index 9e2dce4f4c3..fd6ebc976af 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -6297,14 +6297,14 @@ pgstat_clip_activity(const char *raw_activity) /* * Some callers, like pgstat_get_backend_current_activity(), do not * guarantee that the buffer isn't concurrently modified. We try to take - * care that the buffer is always terminated by a NULL byte regardless, - * but let's still be paranoid about the string's length. In those cases - * the underlying buffer is guaranteed to be - * pgstat_track_activity_query_size large. + * care that the buffer is always terminated by a NUL byte regardless, but + * let's still be paranoid about the string's length. In those cases the + * underlying buffer is guaranteed to be pgstat_track_activity_query_size + * large. */ activity = pnstrdup(raw_activity, pgstat_track_activity_query_size - 1); - /* now double-guaranteed to be NULL terminated */ + /* now double-guaranteed to be NUL terminated */ rawlen = strlen(activity); /* |