* remote.c (init_remote_state): Use xrealloc instead of xmalloc.
This commit is contained in:
parent
f6c957d29d
commit
7fca722e51
@ -1,3 +1,7 @@
|
||||
2006-07-04 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* remote.c (init_remote_state): Use xrealloc instead of xmalloc.
|
||||
|
||||
2006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
|
||||
|
||||
* bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
|
||||
|
@ -334,7 +334,7 @@ init_remote_state (struct gdbarch *gdbarch)
|
||||
if (rs->buf_size < rsa->remote_packet_size)
|
||||
{
|
||||
rs->buf_size = 2 * rsa->remote_packet_size;
|
||||
rs->buf = xmalloc (rs->buf_size);
|
||||
rs->buf = xrealloc (rs->buf, rs->buf_size);
|
||||
}
|
||||
|
||||
return rsa;
|
||||
|
Loading…
Reference in New Issue
Block a user