diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-07-30 15:22:07 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-07-30 15:22:07 +0000 |
commit | ef573b6883c99d2162cca8d68a775a00711a8017 (patch) | |
tree | d88ae1fb417f5f2b61a550c5ef48c9d60dd1cabc /binutils/resbin.c | |
parent | 9f72a94f7202ac13be5b26b813bb3b1c66d3411e (diff) | |
download | gdb-ef573b6883c99d2162cca8d68a775a00711a8017.zip gdb-ef573b6883c99d2162cca8d68a775a00711a8017.tar.gz gdb-ef573b6883c99d2162cca8d68a775a00711a8017.tar.bz2 |
From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
* resbin.c (res_to_bin_menu): Correct computation of menu
vs. menuex length.
* resrc.c (define_stringtable): Add 1 to resource ID.
Diffstat (limited to 'binutils/resbin.c')
-rw-r--r-- | binutils/resbin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/resbin.c b/binutils/resbin.c index 24432d2..7931dbf 100644 --- a/binutils/resbin.c +++ b/binutils/resbin.c @@ -1818,7 +1818,7 @@ res_to_bin_menu (menu, big_endian) menuex = extended_menu (menu); d = (struct bindata *) reswr_alloc (sizeof *d); - d->length = menuex ? 4 : 8; + d->length = menuex ? 8 : 4; d->data = (unsigned char *) reswr_alloc (d->length); if (! menuex) |