Skip to content

Commit

Permalink
Merge pull request #227 from toniebox-reverse-engineering/develop
Browse files Browse the repository at this point in the history
Next Version (hotfix)
  • Loading branch information
SciLor authored Oct 26, 2024
2 parents 961f72d + 203f12d commit f51d086
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/platform_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ error_t socketReceive(Socket *socket, void *data_in,

if ((flags & SOCKET_FLAG_BREAK_CHAR) && buff->buffer_used)
{
const char *ptr = NULL;

/* First, check for the null terminator (0x00) in the buffer */
const char *null_pos = memchr(buff->buffer, 0x00, buff->buffer_used);
if (null_pos)
Expand Down

0 comments on commit f51d086

Please sign in to comment.