diff --git a/src/backend/distributed/utils/attribute.c b/src/backend/distributed/utils/attribute.c index dd0a95f13..d53ea14b6 100644 --- a/src/backend/distributed/utils/attribute.c +++ b/src/backend/distributed/utils/attribute.c @@ -675,7 +675,7 @@ Substring(const char *str, int start, int end) /* Copy the substring to the new memory location */ strncpy_s(substr, end - start + 1, str + start, end - start); - /* Add null terminator to end the substring */ + /* Add null terminator to end of the substring */ substr[end - start] = '\0'; return substr;