* 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 98489c47aa83278af86abd5de100c1f4fc48c73e..b970490cd0ad9cb396b0f79187aa0f64093bdf05 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 a5f8e15379c04951b1c8cc91ac4a038a95f4e0cd..fa0741e40c2e616e2568edc2fb153afceb27ee7d 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 f2633c507344febbb4bf0e347a5ccc9e39a9c318..0647be42d92b9556b35903104640fc0294e7edd1 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;