Jim Meyering <[EMAIL PROTECTED]> writes:
> "Nelson H. F. Beebe" <[EMAIL PROTECTED]> wrote:
>> On DEC Alpha GNU/Linux, the coreutils-5.1.0 test suite had one failure:
>>
>> FAIL: fold
>
> Here's a patch for that one.
> This was due to the use of x2nrealloc with the address of an `int'
> as it's 2nd argument. The problem shows up on systems where
> int and size_t have different sizes.
Here is another portability patch:
--- coreutils-5.1.0/src/stat.c.~1~ 2003-11-05 04:46:47.000000000 +0100
+++ coreutils-5.1.0/src/stat.c 2004-01-08 14:37:44.000000000 +0100
@@ -308,9 +308,9 @@ human_fstype (STRUCT_STATVFS const *stat
return (char *) type;
{
- static char buf[sizeof "UNKNOWN (0x%x)" - 2
+ static char buf[sizeof "UNKNOWN (0x%lx)" - 2
+ 2 * sizeof (statfsbuf->f_type)];
- sprintf (buf, "UNKNOWN (0x%x)", statfsbuf->f_type);
+ sprintf (buf, "UNKNOWN (0x%lx)", (unsigned long) statfsbuf->f_type);
return buf;
}
#endif
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux AG, Maxfeldstra�e 5, 90409 N�rnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils