Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit896537f

Browse files
committed
s/NULL byte/NUL byte/ in comment refering to C string terminator.
Reported-By: Robert HaasDiscussion:https://postgr.es/m/CA+Tgmoa+YBvWgFST2NVoeXjVSohEpK=vqnVCsoCkhTVVxfLcVQ@mail.gmail.com
1 parentf41e56c commit896537f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/backend/postmaster/pgstat.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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 aNULL byte regardless,
6301-
*butlet's still be paranoid about the string's length. In those cases
6302-
*theunderlying buffer is guaranteed to be
6303-
*pgstat_track_activity_query_sizelarge.
6300+
* care that the buffer is always terminated by aNUL 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 beNULL terminated */
6307+
/* now double-guaranteed to beNUL terminated */
63086308
rawlen=strlen(activity);
63096309

63106310
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp