change content buff copying method
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Mon, 28 Feb 2011 06:34:56 +0000 (15:34 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Mon, 28 Feb 2011 06:34:56 +0000 (15:34 +0900)
src/xcnphandler.c

index 3f0fcf5..fe9b483 100755 (executable)
@@ -125,7 +125,8 @@ int add_to_storage_buffer(void *data, char *src, int len)
                g_history_pos = 0;
 
        // FIXME: remove g_lasteset_content
-       memcpy(g_lastest_content, src, len);
+       strncpy(g_lastest_content, src, len);
+       //memcpy(g_lastest_content, src, len);
        g_lastest_content[len] = '\0';
        adding_item_to_storage(ad, g_history_pos, g_lastest_content);
        increment_current_history_position();