diff options
author | JuHyun Kim <jh8212.kim@samsung.com> | 2013-04-22 19:36:01 +0900 |
---|---|---|
committer | JuHyun Kim <jh8212.kim@samsung.com> | 2013-04-22 19:36:01 +0900 |
commit | de328eed37cc2ce845c2f5b79ae304b816291608 (patch) | |
tree | 79b0ba01ac85925987b879d23b79f272d1708cbe | |
parent | 6c563ad414bfafefcd6db71690a0a2299f2ee162 (diff) | |
download | sensor-framework-de328eed37cc2ce845c2f5b79ae304b816291608.tar.gz sensor-framework-de328eed37cc2ce845c2f5b79ae304b816291608.tar.bz2 sensor-framework-de328eed37cc2ce845c2f5b79ae304b816291608.zip |
fix prevent alert (change sizeof -> strlen for name string)submit/tizen_2.1/20130424.233213submit/tizen/20130517.045219accepted/tizen_2.1/20130425.025207accepted/tizen/20130520.1013022.1b_releasetizen_2.1
-rwxr-xr-x | server/src/ccatalog.cpp | 4 |
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(); |