Add missing string terminator
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 30 Apr 2025 08:34:08 +0000 (10:34 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 30 Apr 2025 08:34:08 +0000 (10:34 +0200)
commitd2a1ed1727a8ef45eab1a8ddb3d375c1ce839aac
treef3a2665f7218d99b7b3589731bf84412140fca31
parent991407ae86785ef38bb1ebfea679a70bcd76574d
Add missing string terminator

When copying the string strncpy won't add nul termination since
the string length is equal to the length specified.  Explicitly
set a nul terminator after copying to properly terminate. Found
via post-commit review.

Author: Rahila Syed <rahilasyed90@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAH2L28vt16C9xTuK+K7QZvtA3kCNWXOEiT=gEekUw3Xxp9LVQw@mail.gmail.com
src/backend/utils/mmgr/mcxt.c