We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af45a5d commit a939b57Copy full SHA for a939b57
multimaster.c
@@ -4596,7 +4596,7 @@ MtmNoticeReceiver(void *i, const PGresult *res)
4596
if ( (*(int *)i) != MtmNodeId - 1)
4597
return;
4598
4599
- stripped_notice = palloc0(len);
+ stripped_notice = palloc0(len + 1);
4600
4601
if (*notice == 'N')
4602
{
@@ -4612,7 +4612,7 @@ MtmNoticeReceiver(void *i, const PGresult *res)
4612
}
4613
else
4614
4615
- stripped_notice = notice;
+ strncpy(stripped_notice, notice, len + 1);
4616
MTM_ELOG(WARNING, "%s", stripped_notice);
4617
4618
0 commit comments