]> git.sur5r.net Git - openocd/commit
gdb_server: use strndup to allocate debug messages
authorSpencer Oliver <spen@spen-soft.co.uk>
Thu, 1 Dec 2011 12:48:31 +0000 (12:48 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Fri, 2 Dec 2011 12:26:04 +0000 (12:26 +0000)
commit3500109fc736a4818b34c8c7c8e7ebea59bdd47b
tree8c604e0fe1a6d1f8bb58ba9945ff96ff7f9f28d8
parent5165afc00562d175aa3a0d752a8c709e23984ed9
gdb_server: use strndup to allocate debug messages

Lets be consistent and use strndup to allocate the debug buffer.

Change-Id: I535ad270ebfeae6e09d28372ab3749c822971223
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/245
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/server/gdb_server.c