Skip to content

Commit

Permalink
fix put32bits
Browse files Browse the repository at this point in the history
only used for ttl field so far
  • Loading branch information
mwarning committed Nov 16, 2019
1 parent 5f240da commit bf07836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void put16bits(uint8_t** buffer, uint16_t value)

void put32bits(uint8_t** buffer, uint32_t value)
{
value = htons(value);
value = htonl(value);
memcpy(*buffer, &value, 4);
*buffer += 4;
}
Expand Down

0 comments on commit bf07836

Please sign in to comment.