From: Daniel Jacobowitz Date: Fri, 2 Jun 2006 18:38:43 +0000 (+0000) Subject: * gdb/remote.c (remote_hostio_write): Correct buffer length X-Git-Tag: gdb-csl-symbian-6_4_50_20060226-10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95463fc1a7646cfefd3271293cf06f556a14e75c;p=thirdparty%2Fbinutils-gdb.git * gdb/remote.c (remote_hostio_write): Correct buffer length calculation. --- diff --git a/ChangeLog.csl b/ChangeLog.csl index a34a21de6a7..2e8e67df0e6 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,8 @@ +2006-06-02 Daniel Jacobowitz + + * gdb/remote.c (remote_hostio_write): Correct buffer length + calculation. + 2006-06-01 Daniel Jacobowitz * gdb/exec.c (exec_set_section_address): Always update the diff --git a/gdb/remote.c b/gdb/remote.c index 70fb27ee96e..e9cfd97ba5c 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -6276,7 +6276,7 @@ remote_hostio_write (int fd, const gdb_byte *write_buf, int len, remote_buffer_add_string (&p, &left, ","); p += remote_escape_output (write_buf, len, p, &out_len, - rs->remote_packet_size - strlen (p)); + rs->remote_packet_size - (p - rs->buf)); return remote_hostio_send_command (p - rs->buf, PACKET_Fwrite, remote_errno, NULL, NULL);