fix svace: change strcat to strncat 78/125878/1
authorTaehyub Kim <taehyub.kim@samsung.com>
Wed, 19 Apr 2017 05:16:59 +0000 (14:16 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Wed, 19 Apr 2017 07:51:43 +0000 (16:51 +0900)
Change-Id: If62bee71cb83cd60488ac136daff38c2c8591395

src/wearable/efl_extension_rotary_selector.c

index 13f9222484ba67b3c1a74718d17325b754b7bb4c..2fc7c8999d498f25939163e47285d438ba66a71e 100644 (file)
@@ -2869,16 +2869,16 @@ _accessibility_event_area_highlighted_cb(void *data, Evas_Object *obj, Elm_Acces
                           const char *buf_name;
                           buf_name = elm_atspi_accessible_name_get(rsd->event_area_access_object);
                           if(buf_name)
-                            strcat(buf, buf_name);
+                            strncat(buf, buf_name, strlen(buf_name));
                        }
                   }
                 if(type & ELM_ACCESSIBLE_READING_INFO_TYPE_DESCRIPTION)
                   {
-                     strcat(buf, " ");
+                     strncat(buf, " ", strlen(" "));
                      const char *buf_desc;
                      buf_desc = elm_atspi_accessible_description_get(rsd->event_area_access_object);
                      if(buf_desc)
-                       strcat(buf, buf_desc);
+                       strncat(buf, buf_desc, strlen(buf_desc));
                   }
                 if(strcmp(buf,""))
                   elm_atspi_bridge_utils_say(buf, EINA_TRUE, NULL, NULL);
@@ -3116,12 +3116,12 @@ _accessibility_item_name_set_cb(void *data, Evas_Object *obj)
    char buf[255] = "";
    if(item->text1)
      {
-        strcat(buf, item->text1);
+        strncat(buf, item->text1, strlen(item->text1));
      }
    if(item->text2)
      {
-        strcat(buf, " ");
-        strcat(buf, item->text2);
+        strncat(buf, " ", strlen(" "));
+        strncat(buf, item->text2, strlen(item->text2));
      }
    return strdup(buf);
 }