]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb/remote.c (remote_hostio_write): Correct buffer length gdb-csl-symbian-6_4_50_20060226-10
authorDaniel Jacobowitz <drow@false.org>
Fri, 2 Jun 2006 18:38:43 +0000 (18:38 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 2 Jun 2006 18:38:43 +0000 (18:38 +0000)
calculation.

ChangeLog.csl
gdb/remote.c

index a34a21de6a7218f1a0a74d1c780739a9648a6531..2e8e67df0e63dd30eb1928fdcf097da36a712266 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-02  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb/remote.c (remote_hostio_write): Correct buffer length
+       calculation.
+
 2006-06-01  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * gdb/exec.c (exec_set_section_address): Always update the
index 70fb27ee96e04cedaa329d3e16ba18ba3a130ac3..e9cfd97ba5c00977223c91b4b0527dcbd82461c2 100644 (file)
@@ -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);