aboutsummaryrefslogtreecommitdiff
path: root/binutils/resbin.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-10-10 15:54:42 +0000
committerNick Clifton <nickc@redhat.com>2005-10-10 15:54:42 +0000
commit8b515579d6d617c68910b7483493629e1cd079ed (patch)
treec8073468cacd1f897c264e260d9a8840c1bda5c5 /binutils/resbin.c
parent723a84724a863b280401482c362df8bb6375cc9d (diff)
downloadgdb-8b515579d6d617c68910b7483493629e1cd079ed.zip
gdb-8b515579d6d617c68910b7483493629e1cd079ed.tar.gz
gdb-8b515579d6d617c68910b7483493629e1cd079ed.tar.bz2
* resbin.c (res_to_bin_accelerator): Place the terminating NUL at the correct
location in the bindata structure.
Diffstat (limited to 'binutils/resbin.c')
-rw-r--r--binutils/resbin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/resbin.c b/binutils/resbin.c
index 6ea9338..2c20a27 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;