Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 41f44d4

Browse files
committed
Merge commit '9c87ed1ffd2e0f81414ec87821135a561b6859c6' into PGPRO10
2 parents eabdadf + 9c87ed1 commit 41f44d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_pageprep/pg_pageprep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ start_bgworker_dynamic(const char *dbname, Oid relid, bool wait)
674674
worker_args->async = !wait;
675675

676676
/* Initialize worker struct */
677-
memcpy(buf, dbname, sizeof(buf));
677+
StrNCpy(buf, dbname, sizeof(buf));
678678
snprintf(worker.bgw_name, BGW_MAXLEN,
679679
"pg_pageprep (%s)", buf);
680680
memcpy(worker.bgw_function_name, CppAsString(worker_main), BGW_MAXLEN);

0 commit comments

Comments
 (0)