From bdf7c9d598da7a3697aa933196010443a7f15eb8 Mon Sep 17 00:00:00 2001 From: Victor Polevoy Date: Tue, 15 Jul 2025 11:55:27 +0200 Subject: [PATCH] Provide a higher ceiling for the path --- pgxn/neon/communicator_new.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgxn/neon/communicator_new.c b/pgxn/neon/communicator_new.c index f18523bf9c..f3edfec4b1 100644 --- a/pgxn/neon/communicator_new.c +++ b/pgxn/neon/communicator_new.c @@ -1022,7 +1022,7 @@ communicator_new_read_slru_segment( return -1; } - strlcpy(temp_path, path, Min(PATH_MAX, strlen(path) + 1)); + strlcpy(temp_path, path, Min(BLCKSZ, strlen(path) + 1)); request.read_slru_segment.destination_file_path.ptr = (uint8_t *) temp_path; elog(DEBUG5, "readslrusegment called for kind=%u, segno=%u, file_path=\"%s\"",