]> code.citadel.org Git - citadel.git/commitdiff
* fix 64 bit incompatibility
authorWilfried Göesgens <willi@citadel.org>
Tue, 25 Nov 2008 18:35:10 +0000 (18:35 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 25 Nov 2008 18:35:10 +0000 (18:35 +0000)
webcit/messages.c

index 0ad1b776e64fb4dc2c6c853556e19f73e34bf531..3b05176a7d7145f98ae650e456622acc3e74dd15 100644 (file)
@@ -1041,7 +1041,7 @@ int load_msg_ptrs(char *servcmd, int with_headers)
        ////int sbjlen;
        int maxload = 0;
        long len;
-
+       int n;
        ////int num_summ_alloc = 0;
 
        if (WCC->summ != NULL) {
@@ -1113,7 +1113,8 @@ int load_msg_ptrs(char *servcmd, int with_headers)
                                StrBuf_Utf8StrCut(Msg->from, 23);
                                StrBufAppendBufPlain(Msg->from, HKEY("..."), 0);
                        }
-                       Put(WCC->summ, (const char*)&Msg->msgnum, sizeof(Msg->msgnum), Msg, DestroyMessageSummary);
+                       n = Msg->msgnum;
+                       Put(WCC->summ, (const char *)&n, sizeof(n), Msg, DestroyMessageSummary);
                }
                nummsgs++;
        }