projects
/
xar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cf5039
)
Don't foget to change to big endian numbers
author
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 12 Jun 2025 20:31:09 +0000
(21:31 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 12 Jun 2025 20:31:09 +0000
(21:31 +0100)
ranlib.c
patch
|
blob
|
history
diff --git
a/ranlib.c
b/ranlib.c
index 728a962fc4472b702d81074cc0ad9f5d32fbc9c6..2e1353786887a797861ea30f547faa43c7d743a9 100644
(file)
--- a/
ranlib.c
+++ b/
ranlib.c
@@
-408,7
+408,7
@@
static void hunk_get_symbols (void *object, unsigned long bytes, long offset) {
while (1) {
- name_size = array_to_integer (pos, 4);
+ name_size = array_to_
be_
integer (pos, 4);
pos += 4;
if (name_size == 0) {
@@
-439,7
+439,7
@@
static void hunk_get_symbols (void *object, unsigned long bytes, long offset) {
pos += 4;
}
- num_ref = array_to_integer (pos, 4);
+ num_ref = array_to_
be_
integer (pos, 4);
num_ref *= 4;
pos = pos + 4 + num_ref;
@@
-505,7
+505,7
@@
static void omf_get_symbols (void *object, char *filename, unsigned long bytes,
big_fields = record_type & 1;
record_type &= ~1;
- record_len = array_to_integer (pos + 1, 2);
+ record_len = array_to_
be_
integer (pos + 1, 2);
{