* src/imap.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 13 Mar 2004 11:51:39 +0000 (11:51 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 13 Mar 2004 11:51:39 +0000 (11:51 +0000)
make sure the correct type is passed to sscanf()

ChangeLog.claws
configure.ac
src/imap.c

index 98489c4..b970490 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-13 [alfons]    0.9.10claws11
+
+       * src/imap.c
+               make sure the correct type is passed to sscanf()
+
 2004-03-13 [paul]      0.9.10claws10
 
        * sync with 0.9.10cvs5
index a5f8e15..fa0741e 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=10
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=10
+EXTRA_VERSION=11
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index f2633c5..0647be4 100644 (file)
@@ -2858,7 +2858,7 @@ static gint imap_cmd_search(IMAPSession *session, const gchar *criteria,
                for (p = strlist; *p != NULL; ++p) {
                        guint msgnum;
 
-                       if (sscanf(*p, "%d", &msgnum) == 1)
+                       if (sscanf(*p, "%u", &msgnum) == 1)
                                *list = g_slist_append(*list, GINT_TO_POINTER(msgnum));
                }
                g_strfreev(strlist);
@@ -2942,7 +2942,7 @@ static gint imap_cmd_append(IMAPSession *session, const gchar *destfolder,
        gint size;
        gchar *destfolder_;
        gchar *flag_str;
-       guint32 new_uid_;
+       unsigned int new_uid_;
        gchar *ret = NULL;
        gchar buf[BUFFSIZE];
        FILE *fp;
@@ -3022,13 +3022,13 @@ static gint imap_cmd_append(IMAPSession *session, const gchar *destfolder,
 static MsgNumberList *imapset_to_numlist(IMAPSet imapset)
 {
        gchar **ranges, **range;
-       guint32 low, high;
+       unsigned int low, high;
        MsgNumberList *uids = NULL;
        
        ranges = g_strsplit(imapset, ",", 0);
        for (range = ranges; *range != NULL; range++) {
                printf("%s\n", *range);
-               if(sscanf(*range, "%u:%u", &low, &high) == 1)
+               if (sscanf(*range, "%u:%u", &low, &high) == 1)
                        uids = g_slist_prepend(uids, GINT_TO_POINTER(low));
                else {
                        int i;