CVS commit by ossi:
work around glibc bug: printf("%.*s", INT_MAX, s) tries to allocate 2G.
M +1 -1 drv_maildir.c 1.19
M +1 -1 mdconvert.c 1.3
--- isync/src/drv_maildir.c #1.18:1.19
@@ -663,5 +663,5 @@ maildir_scan( maildir_store_t *ctx, msgl
ml = u - entry->base;
else
- ru = "", ml = INT_MAX;
+ ru = "", ml = sizeof(buf);
fnl = nfsnprintf( buf + bl, sizeof(buf) - bl,
"%s/%.*s,U=%d%s", subdirs[entry->recent], ml, entry->base, uid, ru ) + 1 - 4;
memcpy( nbuf, buf, bl + 4 );
--- isync/src/mdconvert.c #1.2:1.3
@@ -155,5 +155,5 @@ convert( const char *box, int altmap )
ml = u - e->d_name;
else
- ru = "", ml = INT_MAX;
+ ru = "", ml = sizeof(buf);
if (altmap) {
if (!p)
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel