mirror of
https://github.com/86Box/86Box.git
synced 2026-02-25 04:45:31 -07:00
Fix three network-related warnings.
This commit is contained in:
@@ -53,7 +53,8 @@ static bool checkreturn buf_write(pb_ostream_t *stream, const pb_byte_t *buf, si
|
||||
{
|
||||
pb_byte_t *dest = (pb_byte_t*)stream->state;
|
||||
stream->state = dest + count;
|
||||
|
||||
|
||||
if ((dest != NULL) && (buf != NULL))
|
||||
memcpy(dest, buf, count * sizeof(pb_byte_t));
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user