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

Re: sscanf (x, "%u", &(uint64_t))



On Sat, Mar 19, 2005 at 05:50:14PM +0900, TAKAHASHI Tamotsu wrote:
> -      sscanf(pc, "%u", &(idata->uid_validity));
> +      if (sscanf (pc, "%u", &tmpvalidity) == 1)
> +     idata->uid_validity = tmpvalidity;
> +      else
> +     goto fail;
>
how about changing IMAP_DATA.uid_validity to have a sane type? can you
show me _one_ case where a 64 bit int is required within the next 33
years?

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.