commit e96898fe67ad6faca639e843a5d496a3c2952fe3
Author: Oswald Buddenhagen <[email protected]>
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 e62997a..e01e7c0 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -1040,8 +1040,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) {
                                n = socket_write( &ctx->buf.sock, 
cmdp->param.data, cmdp->param.data_len );
                                free( cmdp->param.data );

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to