mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 14:29:39 +00:00
* pbuf.c: Use s32_t in pbuf_realloc(), as an s16_t can't reliably hold
the difference between two u16_t's.
This commit is contained in:
parent
748ba22a19
commit
cd19d81411
@ -117,6 +117,10 @@ HISTORY
|
||||
|
||||
++ Bug fixes:
|
||||
|
||||
2007-04-17 Jonathan Larmour
|
||||
* pbuf.c: Use s32_t in pbuf_realloc(), as an s16_t can't reliably hold
|
||||
the difference between two u16_t's.
|
||||
|
||||
2007-04-12 Jonathan Larmour
|
||||
* icmp.c: Reset IP header TTL in ICMP ECHO responses (bug #19580).
|
||||
|
||||
|
@ -395,7 +395,7 @@ pbuf_realloc(struct pbuf *p, u16_t new_len)
|
||||
{
|
||||
struct pbuf *q;
|
||||
u16_t rem_len; /* remaining length */
|
||||
s16_t grow;
|
||||
s32_t grow;
|
||||
|
||||
LWIP_ASSERT("pbuf_realloc: sane p->flags", p->flags == PBUF_FLAG_POOL ||
|
||||
p->flags == PBUF_FLAG_ROM ||
|
||||
|
Loading…
Reference in New Issue
Block a user