mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Add qemu_realloc(), by Gerd Hoffmann.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4986 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
bf6bca527c
commit
2137b4cca9
9 changed files with 22 additions and 16 deletions
|
@ -2001,7 +2001,7 @@ static int rtl8139_cplus_transmit_one(RTL8139State *s)
|
|||
while (s->cplus_txbuffer && s->cplus_txbuffer_offset + txsize >= s->cplus_txbuffer_len)
|
||||
{
|
||||
s->cplus_txbuffer_len += CP_TX_BUFFER_SIZE;
|
||||
s->cplus_txbuffer = realloc(s->cplus_txbuffer, s->cplus_txbuffer_len);
|
||||
s->cplus_txbuffer = qemu_realloc(s->cplus_txbuffer, s->cplus_txbuffer_len);
|
||||
|
||||
DEBUG_PRINT(("RTL8139: +++ C+ mode transmission buffer space changed to %d\n", s->cplus_txbuffer_len));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue