aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-08-23 17:20:08 +0000
committerNick Clifton <nickc@redhat.com>2006-08-23 17:20:08 +0000
commit174660cedf9568db1381a8e8840a6709fcaa96f6 (patch)
tree4598ed8ab32ffdc22b9ee357c2a30504a7a042df /bfd/archive.c
parent96fbad731809f9fc245cdf8f73e5da3870f7f900 (diff)
downloadfsf-binutils-gdb-174660cedf9568db1381a8e8840a6709fcaa96f6.zip
fsf-binutils-gdb-174660cedf9568db1381a8e8840a6709fcaa96f6.tar.gz
fsf-binutils-gdb-174660cedf9568db1381a8e8840a6709fcaa96f6.tar.bz2
* archive.c (hpux_uid_gid_encode): Fix thinko decrementing "cnt" variable.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r--bfd/archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index d6930fb..24bb048 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -1336,7 +1336,7 @@ hpux_uid_gid_encode (char str[6], long int id)
str[5] = '@' + (id & 3);
id >>= 2;
- for (cnt = 4; cnt >= 0; ++cnt, id >>= 6)
+ for (cnt = 4; cnt >= 0; --cnt, id >>= 6)
str[cnt] = ' ' + (id & 0x3f);
}
#endif /* HPUX_LARGE_AR_IDS */