Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita939b57

Browse files
committed
fix bug in MtmNoticeReceiver
1 parentaf45a5d commita939b57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎multimaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4596,7 +4596,7 @@ MtmNoticeReceiver(void *i, const PGresult *res)
45964596
if ( (*(int*)i)!=MtmNodeId-1)
45974597
return;
45984598

4599-
stripped_notice=palloc0(len);
4599+
stripped_notice=palloc0(len+1);
46004600

46014601
if (*notice=='N')
46024602
{
@@ -4612,7 +4612,7 @@ MtmNoticeReceiver(void *i, const PGresult *res)
46124612
}
46134613
else
46144614
{
4615-
stripped_notice=notice;
4615+
strncpy(stripped_notice,notice,len+1);
46164616
MTM_ELOG(WARNING,"%s",stripped_notice);
46174617
}
46184618

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp