* archive.c (hpux_uid_gid_encode): Fix thinko decrementing "cnt" variable.
authorNick Clifton <nickc@redhat.com>
Wed, 23 Aug 2006 17:20:08 +0000 (17:20 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 23 Aug 2006 17:20:08 +0000 (17:20 +0000)
bfd/ChangeLog
bfd/archive.c

index 3321856b74012f62d0c8458f28ece0c5a1f27950..4bfa63f1363dc1e10dab1ce3d175458e78ad40b2 100644 (file)
@@ -1,3 +1,8 @@
+2006-08-23  Frediano Ziglio  <Frediano.Ziglio@vodafone.com>
+
+       * archive.c (hpux_uid_gid_encode): Fix thinko decrementing "cnt"
+       variable.
+
 2006-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * elf32-arm.c (elf32_arm_copy_indirect_symbol): Only copy
index d6930fb84b62e00e1d0ce115033dbad87284bb6a..24bb048138bbe0d7daa003adabf348047beda655 100644 (file)
@@ -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 */