projects
/
sar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
624308e
)
Fix size checks
master
author
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 19 Jun 2025 15:08:42 +0000
(16:08 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 19 Jun 2025 15:08:42 +0000
(16:08 +0100)
ranlib.c
patch
|
blob
|
history
diff --git
a/ranlib.c
b/ranlib.c
index c833d1ff363ea85a8e32df9aeb592ab5f01d4562..f2a832b5a48cc0a849083d5c7a8e5d1c1c042dfd 100644
(file)
--- a/
ranlib.c
+++ b/
ranlib.c
@@
-556,7
+556,7
@@
void ranlib (FILE *arfp) {
char temp[16];
long offset = 0;
char temp[16];
long offset = 0;
-#if UINT_MAX == 6553
6
+#if UINT_MAX == 6553
5
long bytes;
#else
int bytes;
long bytes;
#else
int bytes;
@@
-678,7
+678,7
@@
void ranlib (FILE *arfp) {
memcpy (header.group, temp, 6);
memcpy (header.mode, temp, 8);
memcpy (header.group, temp, 6);
memcpy (header.mode, temp, 8);
-#if UINT_MAX == 6553
6
+#if UINT_MAX == 6553
5
len = sprintf (temp, "%ld", bytes + 4);
#else
len = sprintf (temp, "%d", bytes + 4);
len = sprintf (temp, "%ld", bytes + 4);
#else
len = sprintf (temp, "%d", bytes + 4);