(patch) windres/resrc.c shadowing bug fix
Mumit Khan
khan@nanotech.wisc.edu
Mon Jan 3 12:01:00 GMT 2000
Obvious fix.
1999-01-01 Mumit Khan <khan@xraylith.wisc.edu>
* resrc.c (write_rc_rcdata): Fix shadowing bug.
Index: resrc.c
===================================================================
RCS file: /homes/khan/src/CVSROOT/binutils-19990911/binutils/resrc.c,v
retrieving revision 1.2
diff -u -3 -p -r1.2 resrc.c
--- resrc.c 1999/12/23 07:58:31 1.2
+++ resrc.c 2000/01/01 01:19:17
@@ -2166,9 +2166,9 @@ write_rc_rcdata (e, rcdata, ind)
if (i + 1 < ri->u.buffer.length)
{
- int i;
+ int j;
- i = (ri->u.buffer.data[i + 1] << 8) | ri->u.buffer.data[i];
+ j = (ri->u.buffer.data[i + 1] << 8) | ri->u.buffer.data[i];
if (first)
first = 0;
else
@@ -2176,7 +2176,7 @@ write_rc_rcdata (e, rcdata, ind)
fprintf (e, ",\n");
indent (e, ind + 2);
}
- fprintf (e, "%d", i);
+ fprintf (e, "%d", j);
i += 2;
}
More information about the Binutils
mailing list