Skip to content

Commit

Permalink
add warning on missing null
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Oct 17, 2024
1 parent c90041c commit 71b21f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/platform_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ error_t socketReceive(Socket *socket, void *data_in,
}
else
{
TRACE_WARNING("buffer does not contain null terminator\r\n");
/* If no null terminator, safely use memchr over the whole buffer */
ptr = memchr(buff->buffer, flags & 0xFF, buff->buffer_used);
}
Expand Down

0 comments on commit 71b21f8

Please sign in to comment.