fix prevent alert (change sizeof -> strlen for name string) tizen_2.1 2.1b_release accepted/tizen/20130520.101302 accepted/tizen_2.1/20130425.025207 submit/tizen/20130517.045219 submit/tizen_2.1/20130424.233213
authorJuHyun Kim <jh8212.kim@samsung.com>
Mon, 22 Apr 2013 10:36:01 +0000 (19:36 +0900)
committerJuHyun Kim <jh8212.kim@samsung.com>
Mon, 22 Apr 2013 10:36:01 +0000 (19:36 +0900)
server/src/ccatalog.cpp

index 31be9bc..ff9885a 100755 (executable)
@@ -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();