summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuHyun Kim <jh8212.kim@samsung.com>2013-04-22 19:36:01 +0900
committerJuHyun Kim <jh8212.kim@samsung.com>2013-04-22 19:36:01 +0900
commitde328eed37cc2ce845c2f5b79ae304b816291608 (patch)
tree79b0ba01ac85925987b879d23b79f272d1708cbe
parent6c563ad414bfafefcd6db71690a0a2299f2ee162 (diff)
downloadsensor-framework-de328eed37cc2ce845c2f5b79ae304b816291608.tar.gz
sensor-framework-de328eed37cc2ce845c2f5b79ae304b816291608.tar.bz2
sensor-framework-de328eed37cc2ce845c2f5b79ae304b816291608.zip
-rwxr-xr-xserver/src/ccatalog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/ccatalog.cpp b/server/src/ccatalog.cpp
index 31be9bc..ff9885a 100755
--- a/server/src/ccatalog.cpp
+++ b/server/src/ccatalog.cpp
@@ -286,7 +286,7 @@ char *ccatalog::value(char *group, char *name)
desc = grp->head;
while (desc) {
- if (!strncmp(name, desc->name, sizeof(desc->name))) {
+ if (!strncmp(name, desc->name, strlen(desc->name))) {
return desc->value;
}
desc = (desc_t*)desc->next();
@@ -305,7 +305,7 @@ char *ccatalog::value(void *handle, char *name)
desc = grp->head;
while (desc) {
- if (!strncmp(name, desc->name, sizeof(desc->name))) {
+ if (!strncmp(name, desc->name, strlen(desc->name))) {
return desc->value;
}
desc = (desc_t*)desc->next();