<<< Date Index >>>     <<< Thread Index >>>

sscanf (pc,"%lu",&uidvalidity) (Re: [2005-03-22] CVS repository changes)



> 2005-03-22 03:40:54  Thomas Glanzmann  <sithglan@xxxxxxxxxxxxxxxxxxxx>
> (brendan)
> 
>       * hcache.c, imap/imap.c, imap/imap_private.h, imap/message.c,
>       protos.h: Thomas graces us with this patch that resolves a
>       type-size inconsistency in the UIDVALIDITY parser.
> 
>       Edited for correctness.

Good job, Brendan. "%lu" is correct. No warning now.
Thank you.

BTW, What about checking the return value of sscanf?
(as Yonetani-san said.)

        if (sscanf (pc, "%lu", &(idata->uid_validity)) != 1)
          goto fail;

-- 
tamo