commit 7de87234370f1ac74f3d70a0d7264720c90d5f63 Author: Oswald Buddenhagen <o...@kde.org> Date: Sat Mar 12 16:20:48 2011 +0100
less bizarre code we know that there is only one command in progress, so there is no need to employ tricks to access the last command. src/drv_imap.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/drv_imap.c b/src/drv_imap.c index e0df3c6..d818811 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -822,8 +822,7 @@ get_cmd_result( imap_store_t *ctx, struct imap_cmd *tcmd ) } else if (*arg == '+') { /* This can happen only with the last command underway, as it enforces a round-trip. */ - cmdp = (struct imap_cmd *)((char *)ctx->in_progress_append - - offsetof(struct imap_cmd, next)); + cmdp = ctx->in_progress; if (cmdp->param.data) { if (cmdp->param.to_trash) ctx->trashnc = 0; /* Can't get NO [TRYCREATE] any more. */ ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel