mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Also copy the terminator in vkd3d_shader_message_context_copy_messages().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f6868919d3
commit
cd69865b69
@ -120,8 +120,8 @@ static char *vkd3d_shader_message_context_copy_messages(struct vkd3d_shader_mess
|
||||
{
|
||||
char *messages;
|
||||
|
||||
if ((messages = vkd3d_malloc(context->messages.content_size)))
|
||||
memcpy(messages, context->messages.buffer, context->messages.content_size);
|
||||
if ((messages = vkd3d_malloc(context->messages.content_size + 1)))
|
||||
memcpy(messages, context->messages.buffer, context->messages.content_size + 1);
|
||||
|
||||
return messages;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user