diff --git a/src/backend/commands/collationcmds.c b/src/backend/commands/collationcmds.c index a0b3b23816..1c43f0b0ed 100644 --- a/src/backend/commands/collationcmds.c +++ b/src/backend/commands/collationcmds.c @@ -443,7 +443,7 @@ get_icu_locale_comment(const char *localename) status = U_ZERO_ERROR; len_uchar = uloc_getDisplayName(localename, "en", - &displayname[0], sizeof(displayname), + displayname, lengthof(displayname), &status); if (U_FAILURE(status)) ereport(ERROR,