On Tue, 13 Jul 2010 23:56:43 +0100, Michael Drake wrote:

>  199  Warning  long int format, different type arg (arg 4)
>  199  Warning  long int format, different type arg (arg 4)

That's the size parameter.  That value here is typed as follows:
off_t st_size;

I'm not sure what length off_t is supposed to be (and it isn't
necessarily the same on RISC OS anyway), but given the (null) is only
showing up on files, it would appear to be reading that again for the
date, meaning it then reads the date instead of the type argument for
the next value.

Splitting it into a couple of different sprintfs would solve it, but
that's not really the right solution :)

I'll have another look at it tomorrow if nobody else gets there first.
It may be as simple as casting that value to a long.

Chris

Reply via email to