* resbin.c (res_to_bin_accelerator): Place the terminating NUL at the correct
authorNick Clifton <nickc@redhat.com>
Mon, 10 Oct 2005 15:54:42 +0000 (15:54 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 10 Oct 2005 15:54:42 +0000 (15:54 +0000)
  location in the bindata structure.

binutils/ChangeLog
binutils/resbin.c

index 0138fb2a9d69d40aa3002ec8251e819025ecda45..47a74c219034d42b3879251a793843a594089a96 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-10  Thomas Weidenmueller  <w3seek@reactos.com>
+
+       * resbin.c (res_to_bin_accelerator): Place the terminating NUL at
+       the correct location in the bindata structure.
+
 2005-10-10  Bryce Schober  <bryce.schober@dynonavionics.com>
 
        * doc/binutils.texi (objdump): Fix typo: -reg-name-std should be
index 6ea9338efa8ec90ca61d61ddacff8f952dad4137..2c20a273a1aa6e00d5d108f2c3bd81eabd015c5f 100644 (file)
@@ -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;