diff options
author | bahbka <bahbka@bahbka.com> | 2014-07-06 16:17:25 +0400 |
---|---|---|
committer | bahbka <bahbka@bahbka.com> | 2014-07-06 16:17:25 +0400 |
commit | e20f8e05adeb3a9e77e2ff24008d796fd35dd343 (patch) | |
tree | f71ec5d46662d883c2ca2328b5e5b475c8fbd34a | |
parent | 1f59941a475cd8a34a8e693f18c194e823e45e44 (diff) |
Copy end-of-string zero.
-rw-r--r-- | src/pebble-my-data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pebble-my-data.c b/src/pebble-my-data.c index 1f088aa..f15bcc2 100644 --- a/src/pebble-my-data.c +++ b/src/pebble-my-data.c @@ -455,7 +455,7 @@ void in_received_handler(DictionaryIterator *received, void *context) { Tuple *content_tuple = dict_find(received, KEY_CONTENT); if (content_tuple) { - memcpy(content, content_tuple->value->cstring, strlen(content_tuple->value->cstring)); + memcpy(content, content_tuple->value->cstring, strlen(content_tuple->value->cstring) + 1); Tuple *scroll_up_tuple = dict_find(received, KEY_SCROLL); bool scroll_up = false; |