Content-Length: 268236 | pFad | http://github.com/postgrespro/postgres_cluster/commit/a939b57802a6c2ee960606f5500ab24fce3dbff2
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
Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/a939b57802a6c2ee960606f5500ab24fce3dbff2
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments