mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-22 21:33:33 +02:00
size_t values can't be negative.
This commit is contained in:
parent
1523a4f035
commit
28ceecba37
1 changed files with 0 additions and 6 deletions
|
@ -115,9 +115,6 @@ readlong(char *packet, char **src, uint32_t *dst)
|
|||
int
|
||||
readdata(char *packet, char **src, char *dst, size_t len)
|
||||
{
|
||||
if (len < 0)
|
||||
return 0;
|
||||
|
||||
memcpy(dst, *src, len);
|
||||
|
||||
(*src) += len;
|
||||
|
@ -232,9 +229,6 @@ putlong(char **dst, uint32_t value)
|
|||
int
|
||||
putdata(char **dst, char *data, size_t len)
|
||||
{
|
||||
if (len < 0)
|
||||
return 0;
|
||||
|
||||
memcpy(*dst, data, len);
|
||||
|
||||
(*dst) += len;
|
||||
|
|
Loading…
Reference in a new issue