Hello,

My glibc sometimes doesn't like to snprintf strings with precision
INT_MAX (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=380195).
This glitch makes the code below in drv_maildir.c sometimes fail:

    if (u)
        ml = u - entry->base;
    else
        ru = "", ml = INT_MAX;
    fnl = nfsnprintf( buf + bl, sizeof(buf) - bl, "%s/%.*s,U=%d%s",
        subdirs[entry->recent], ml, entry->base, uid, ru ) + 1 - 4;

Changing the line
        ru = "", ml = INT_MAX;
to say
        ru = "", ml = sizeof(buf);
works around this problem.

Cheers,
        Ken

-- 
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
I find it funny how the more interesting something is to me
the harder it is for me to think of a use for it. -- A post on Ars Technica

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to