summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHaesu Gwon <haesu.gwon@samsung.com>2016-09-29 21:22:55 +0900
committerHaesu Gwon <haesu.gwon@samsung.com>2016-09-30 11:44:56 +0900
commitf8aba8cb35e6ccc480ba20576acafa888b5b7c58 (patch)
treeaf783e740a730b0277c97a83218e108014660bc9 /include
parentd6a9050d12494a42a006a6e95d98641fd64ceafb (diff)
downloadcamera-f8aba8cb35e6ccc480ba20576acafa888b5b7c58.tar.gz
camera-f8aba8cb35e6ccc480ba20576acafa888b5b7c58.tar.bz2
camera-f8aba8cb35e6ccc480ba20576acafa888b5b7c58.zip
Received message is at risk for corruption with previous message. So '\0' char is added at end of tokenized message. [Version] 0.2.76 [Profile] Common [Issue Type] Bug fix [Dependency module] N/A [Dependency commit] N/A [Test] [W(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-wearable_20160929.1] Change-Id: Icca98962da0f955ce32c0acc660ccc40754510e2 Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/camera_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/camera_private.h b/include/camera_private.h
index 8d84f75..7cbd9e1 100644
--- a/include/camera_private.h
+++ b/include/camera_private.h
@@ -34,7 +34,7 @@ extern "C" {
#endif /* BUFFER_MAX_PLANE_NUM */
#define BUFFER_MAX_PLANE_NUM 4
-#define CAMERA_PARSE_STRING_SIZE 20
+#define CAMERA_PARSED_STRING_NUM_MAX 20
#define CAMERA_CB_TIMEOUT 5
#define CAMERA_CB_TIMEOUT_LONG 8
@@ -113,7 +113,7 @@ typedef struct _camera_cb_info_s {
/* message receive thread */
GThread *msg_recv_thread;
gint msg_recv_running;
- gchar recv_msg[MUSE_CAMERA_MSG_MAX_LENGTH];
+ gchar recv_msg[MUSE_CAMERA_MSG_MAX_LENGTH * CAMERA_PARSED_STRING_NUM_MAX];
GCond api_cond[MUSE_CAMERA_API_MAX];
GMutex api_mutex[MUSE_CAMERA_API_MAX];
gint api_activating[MUSE_CAMERA_API_MAX];