diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-07-29 15:06:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-07-29 15:06:48 +0000 |
commit | c88790775dc9db165bb15010da4efb3cf7458816 (patch) | |
tree | 9d53c1be2370ef7d8a1a8e87a4e954eff5a7f990 /binutils/resbin.c | |
parent | fea90b62c110130f2e9eacaacdc5dabaec99f941 (diff) | |
download | gdb-c88790775dc9db165bb15010da4efb3cf7458816.zip gdb-c88790775dc9db165bb15010da4efb3cf7458816.tar.gz gdb-c88790775dc9db165bb15010da4efb3cf7458816.tar.bz2 |
* resbin.c (bin_to_res_string): Correct adjustment of data and
length. From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>.
Diffstat (limited to 'binutils/resbin.c')
-rw-r--r-- | binutils/resbin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/resbin.c b/binutils/resbin.c index 47d102c..24432d2 100644 --- a/binutils/resbin.c +++ b/binutils/resbin.c @@ -667,8 +667,8 @@ bin_to_res_string (data, length, big_endian) s[j] = get_16 (big_endian, data + 2 + j * 2); } - data += 2 + slen; - length -= 2 + slen; + data += 2 + 2 * slen; + length -= 2 + 2 * slen; } r = (struct res_resource *) res_alloc (sizeof *r); |