[cbhm] fixed wrong item counting
authorMinseok Kim <minseok3.kim@samsung.com>
Thu, 26 Jul 2012 07:58:51 +0000 (16:58 +0900)
committerMinseok Kim <minseok3.kim@samsung.com>
Thu, 26 Jul 2012 07:58:51 +0000 (16:58 +0900)
src/main.c
src/xhandler.c

index d088d4a..dcbb8a4 100644 (file)
@@ -115,6 +115,7 @@ static int app_create(void *data)
        if (!(ad->xhandler = init_xhandler(ad))) return EXIT_FAILURE;
        if (!(ad->screencapture = init_screencapture(ad))) return EXIT_FAILURE;
        if (!(ad->storage = init_storage(ad))) return EXIT_FAILURE;
+       slot_item_count_set(ad);
 
        set_selection_owner(ad, ECORE_X_SELECTION_CLIPBOARD, NULL);
        return 0;
index 7ad5b03..f261b08 100644 (file)
@@ -469,7 +469,7 @@ static Eina_Bool _xclient_msg_cb(void *data, int type, void *event)
                                xd->atomUTF8String,
                                8,
                                countbuf,
-                               strlen(countbuf));
+                               strlen(countbuf)+1);
        }
        /* for OSP */
        else if (strncmp("GET_ITEM", ev->data.b, 8) == 0)
@@ -823,5 +823,5 @@ void slot_item_count_set(AppData *ad)
                        xd->atomUTF8String,
                        8,
                        countbuf,
-                       strlen(countbuf));
+                       strlen(countbuf)+1);
 }