summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreatim <jaewon81.lim@samsung.com>2013-07-10 17:15:46 +0900
committergreatim <jaewon81.lim@samsung.com>2013-07-10 17:15:46 +0900
commiteba26853bd9fb9fa6b278541a9784e011e76b587 (patch)
treecab83b202fecb87aa192993469c853f0f4b8286a
parent953a7c778bee4ae07e42b6a9407c412d22965ead (diff)
downloaddynamic-analysis-manager-eba26853bd9fb9fa6b278541a9784e011e76b587.tar.gz
dynamic-analysis-manager-eba26853bd9fb9fa6b278541a9784e011e76b587.tar.bz2
dynamic-analysis-manager-eba26853bd9fb9fa6b278541a9784e011e76b587.zip
[Desc.] [Issue] Change-Id: I8c4ee64529e99df5cd388024087e5435fc2a3b3c
-rw-r--r--daemon/sys_stat.c11
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;
}
}