binarybuffer: use strndup to allocate string
authorSpencer Oliver <spen@spen-soft.co.uk>
Thu, 1 Dec 2011 14:15:10 +0000 (14:15 +0000)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Thu, 1 Dec 2011 19:11:20 +0000 (19:11 +0000)
commit3dde0f47b2b43dfda26f49e487e018d5abe272fe
tree164605f7c896ebe90617e5bf42f559aeb3f33f6c
parent4f4acc3669c403ca6b0b9ba07fa6a5f51b4a63ec
binarybuffer: use strndup to allocate string

Change-Id: I65d8f37b18d5b5a798406b956f50ab7bb550e172
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/246
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/helper/binarybuffer.c