diff options
author | greatim <jaewon81.lim@samsung.com> | 2013-07-10 17:15:46 +0900 |
---|---|---|
committer | greatim <jaewon81.lim@samsung.com> | 2013-07-10 17:15:46 +0900 |
commit | eba26853bd9fb9fa6b278541a9784e011e76b587 (patch) | |
tree | cab83b202fecb87aa192993469c853f0f4b8286a | |
parent | 953a7c778bee4ae07e42b6a9407c412d22965ead (diff) | |
download | dynamic-analysis-manager-eba26853bd9fb9fa6b278541a9784e011e76b587.tar.gz dynamic-analysis-manager-eba26853bd9fb9fa6b278541a9784e011e76b587.tar.bz2 dynamic-analysis-manager-eba26853bd9fb9fa6b278541a9784e011e76b587.zip |
[Title] prevent fixsubmit/tizen_2.2/20130714.142638submit/tizen_2.2/20130714.134042submit/tizen_2.2/20130714.131611
[Desc.]
[Issue]
Change-Id: I8c4ee64529e99df5cd388024087e5435fc2a3b3c
-rw-r--r-- | daemon/sys_stat.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/daemon/sys_stat.c b/daemon/sys_stat.c index 2ba7888..831de80 100644 --- a/daemon/sys_stat.c +++ b/daemon/sys_stat.c @@ -1561,16 +1561,7 @@ static int get_camera_count() { if(strncmp(buf, CAMERA_COUNT_STR, size) == 0) { - tmp = strchr(buf, '='); - if(tmp != NULL) - { - tmp++; - while(isspace(*tmp)) - tmp++; - - count = atoi(tmp); - } - + sscanf(buf, CAMERA_COUNT_STR " = %d", &count); break; } } |