File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6297,14 +6297,14 @@ pgstat_clip_activity(const char *raw_activity)
6297
6297
/*
6298
6298
* Some callers, like pgstat_get_backend_current_activity(), do not
6299
6299
* guarantee that the buffer isn't concurrently modified. We try to take
6300
- * care that the buffer is always terminated by a NULL byte regardless,
6301
- * but let's still be paranoid about the string's length. In those cases
6302
- * the underlying buffer is guaranteed to be
6303
- * pgstat_track_activity_query_size large.
6300
+ * care that the buffer is always terminated by a NUL byte regardless, but
6301
+ * let's still be paranoid about the string's length. In those cases the
6302
+ * underlying buffer is guaranteed to be pgstat_track_activity_query_size
6303
+ * large.
6304
6304
*/
6305
6305
activity = pnstrdup (raw_activity , pgstat_track_activity_query_size - 1 );
6306
6306
6307
- /* now double-guaranteed to be NULL terminated */
6307
+ /* now double-guaranteed to be NUL terminated */
6308
6308
rawlen = strlen (activity );
6309
6309
6310
6310
/*
You can’t perform that action at this time.
0 commit comments