From 7fca722e51f4517d93abefd8aab95e6a7a074e3d Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 4 Jul 2006 13:31:31 +0000 Subject: * remote.c (init_remote_state): Use xrealloc instead of xmalloc. --- gdb/remote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/remote.c') 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; -- cgit v1.1