This is an automated email from Gerrit.

Christian Eggers (cegg...@gmx.de) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/1922

-- gerrit

commit be4c0baf671773c2e2ecd723746819d3724f4de7
Author: Christian Eggers <cegg...@gmx.de>
Date:   Mon Feb 3 20:13:54 2014 +0100

    Remove unneeded zero termination of received packet
    
    packet[] has already been zero terminated in gdb_input_inner()
    This change is necessary in order to make packet[] "const".
    
    Change-Id: I978bbe52d151a63574db77fb747f596da256d377
    Signed-off-by: Christian Eggers <cegg...@gmx.de>

diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 149af77..ad6c0b6 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -1513,7 +1513,6 @@ static int gdb_step_continue_packet(struct connection 
*connection,
        LOG_DEBUG("-");
 
        if (packet_size > 1) {
-               packet[packet_size] = 0;
                address = strtoul(packet + 1, NULL, 16);
        } else
                current = 1;

-- 

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to