Browse Source

* pbuf.c: Use s32_t in pbuf_realloc(), as an s16_t can't reliably hold

the difference between two u16_t's.
STABLE-2_1_x
jifl 19 years ago
parent
commit
cd19d81411
  1. 4
      CHANGELOG
  2. 2
      src/core/pbuf.c

4
CHANGELOG

@ -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).

2
src/core/pbuf.c

@ -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…
Cancel
Save