diff options
author | Haesu Gwon <haesu.gwon@samsung.com> | 2016-09-29 21:22:55 +0900 |
---|---|---|
committer | Haesu Gwon <haesu.gwon@samsung.com> | 2016-09-30 11:44:56 +0900 |
commit | f8aba8cb35e6ccc480ba20576acafa888b5b7c58 (patch) | |
tree | af783e740a730b0277c97a83218e108014660bc9 /include | |
parent | d6a9050d12494a42a006a6e95d98641fd64ceafb (diff) | |
download | camera-f8aba8cb35e6ccc480ba20576acafa888b5b7c58.tar.gz camera-f8aba8cb35e6ccc480ba20576acafa888b5b7c58.tar.bz2 camera-f8aba8cb35e6ccc480ba20576acafa888b5b7c58.zip |
Fix TSAM-7948submit/tizen_3.0_ivi/20161010.000010submit/tizen_3.0_ivi/20161010.000000submit/tizen/20160930.030513accepted/tizen/wearable/20160930.083621accepted/tizen/tv/20160930.083737accepted/tizen/mobile/20160930.083658accepted/tizen/ivi/20160930.083759accepted/tizen/common/20160930.174725accepted/tizen/3.0/ivi/20161011.053531
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.h | 4 |
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]; |