Andreas Schwab <[EMAIL PROTECTED]> wrote:
> 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

Thank you!
I've applied that along with the tiny additional change: s/- 2/- 3/.


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to