From: Nick Clifton Date: Mon, 10 Oct 2005 15:54:42 +0000 (+0000) Subject: * resbin.c (res_to_bin_accelerator): Place the terminating NUL at the correct X-Git-Tag: gdb-csl-arm-20051020-branchpoint~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b515579d6d617c68910b7483493629e1cd079ed;p=thirdparty%2Fbinutils-gdb.git * resbin.c (res_to_bin_accelerator): Place the terminating NUL at the correct location in the bindata structure. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 0138fb2a9d6..47a74c21903 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2005-10-10 Thomas Weidenmueller + + * resbin.c (res_to_bin_accelerator): Place the terminating NUL at + the correct location in the bindata structure. + 2005-10-10 Bryce Schober * doc/binutils.texi (objdump): Fix typo: -reg-name-std should be diff --git a/binutils/resbin.c b/binutils/resbin.c index 6ea9338efa8..2c20a273a1a 100644 --- a/binutils/resbin.c +++ b/binutils/resbin.c @@ -1415,7 +1415,7 @@ res_to_bin_accelerator (const struct accelerator *accelerators, d->data); put_16 (big_endian, a->key, d->data + 2); put_16 (big_endian, a->id, d->data + 4); - put_16 (big_endian, 0, d->data + 8); + put_16 (big_endian, 0, d->data + 6); d->next = NULL; *pp = d;