* remote.c (init_remote_state): Use xrealloc instead of xmalloc.

This commit is contained in:
Daniel Jacobowitz 2006-07-04 13:31:31 +00:00
parent f6c957d29d
commit 7fca722e51
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -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;