commit b6c6299ea646ac07e6b6b4914fd64ba898d5febf
Author: Oswald Buddenhagen <[email protected]>
Date: Mon Jul 31 05:31:17 2006 +0000
another attempt at working around glibc breakage.
src/drv_maildir.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/drv_maildir.c b/src/drv_maildir.c
index 54cadc1..2b91890 100644
--- a/src/drv_maildir.c
+++ b/src/drv_maildir.c
@@ -637,11 +637,10 @@ maildir_scan( maildir_store_t *ctx, msglist_t *msglist )
for (ru = u + 3; isdigit( (unsigned
char)*ru ); ru++);
else
u = ru = strchr( entry->base, ':' );
- if (u)
- ml = u - entry->base;
- else
- 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;
+ fnl = (u ?
+ nfsnprintf( buf + bl, sizeof(buf) - bl,
"%s/%.*s,U=%d%s", subdirs[entry->recent], u - entry->base, entry->base, uid, ru
) :
+ nfsnprintf( buf + bl, sizeof(buf) - bl,
"%s/%s,U=%d", subdirs[entry->recent], entry->base, uid ))
+ + 1 - 4;
memcpy( nbuf, buf, bl + 4 );
nfsnprintf( nbuf + bl + 4, sizeof(nbuf) - bl -
4, "%s", entry->base );
if (rename( nbuf, buf )) {
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel