aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-07-04 13:31:31 +0000
committerDaniel Jacobowitz <drow@false.org>2006-07-04 13:31:31 +0000
commit7fca722e51f4517d93abefd8aab95e6a7a074e3d (patch)
tree785f7ffe3869150ca12c1fb8ffb1ca3c9728498d /gdb/remote.c
parentf6c957d29dcf36f30d86e6c76501f7d3be03ad9c (diff)
downloadgdb-7fca722e51f4517d93abefd8aab95e6a7a074e3d.zip
gdb-7fca722e51f4517d93abefd8aab95e6a7a074e3d.tar.gz
gdb-7fca722e51f4517d93abefd8aab95e6a7a074e3d.tar.bz2
* remote.c (init_remote_state): Use xrealloc instead of xmalloc.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 89fe800..c8e93d0 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -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;