--- remote.c~ 2003-06-30 16:51:49.000000000 +0100 +++ remote.c 2003-11-29 01:50:05.000000000 +0000 @@ -3440,10 +3440,11 @@ remote_fetch_registers (int regnum) internal_error (__FILE__, __LINE__, "Attempt to fetch a non G-packet register when this " "remote.c does not support the p-packet."); } + memset (buf, 0, rs->remote_packet_size); sprintf (buf, "g"); remote_send (buf, (rs->remote_packet_size)); /* Save the size of the packet sent to us by the target. Its used as a heuristic when determining the max size of packets that the