File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 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)
62976297 /*
62986298 * Some callers, like pgstat_get_backend_current_activity(), do not
62996299 * 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.
63046304 */
63056305 activity = pnstrdup (raw_activity , pgstat_track_activity_query_size - 1 );
63066306
6307- /* now double-guaranteed to be NULL terminated */
6307+ /* now double-guaranteed to be NUL terminated */
63086308 rawlen = strlen (activity );
63096309
63106310 /*
You can’t perform that action at this time.
0 commit comments