e_info_server: fixed string buffer size warning 14/199514/1
authorGwanglim Lee <gl77.lee@samsung.com>
Tue, 12 Feb 2019 09:32:22 +0000 (18:32 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Tue, 12 Feb 2019 09:32:22 +0000 (18:32 +0900)
Change-Id: Iad26f92998c689ddddc51196b47cbe59de9f5250

src/bin/e_info_server.c

index 9699ddd173eae5dbe222d8f9b994b43b3bab5c95..446a1358f5b2c1cbfa9d62060b0673c8166875fa 100644 (file)
@@ -4497,7 +4497,7 @@ _msg_fps_append(Eldbus_Message_Iter *iter)
      {
         if (!output) continue;
 
-        strncpy(output_name, output->id, sizeof(char)*30);
+        strncpy(output_name, output->id, sizeof(char)*29);
 
         if (output->hwc)
           {