projects
/
framework
/
uifw
/
cbhm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cf7185
)
change content buff copying method
author
Hyoyoung Chang
<hyoyoung.chang@samsung.com>
Mon, 28 Feb 2011 06:34:56 +0000
(15:34 +0900)
committer
Hyoyoung Chang
<hyoyoung.chang@samsung.com>
Mon, 28 Feb 2011 06:34:56 +0000
(15:34 +0900)
src/xcnphandler.c
patch
|
blob
|
history
diff --git
a/src/xcnphandler.c
b/src/xcnphandler.c
index
3f0fcf5
..
fe9b483
100755
(executable)
--- a/
src/xcnphandler.c
+++ b/
src/xcnphandler.c
@@
-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();