diff options
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c index d7b9263571..b8e5eb95f2 100644 --- a/src/message.c +++ b/src/message.c @@ -2739,7 +2739,7 @@ store_sb_text( if (s > *sb_str) { - mp = alloc(sizeof(msgchunk_T) + (s - *sb_str)); + mp = alloc(offsetof(msgchunk_T, sb_text) + (s - *sb_str) + 1); if (mp != NULL) { mp->sb_eol = finish; |