summaryrefslogtreecommitdiff
path: root/src/lib/evas/vg/evas_vg_cache.c
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-02-21 14:17:18 +0900
committerHermet Park <hermetpark@gmail.com>2019-02-21 14:17:18 +0900
commit100a5b210d87c339d4f51e6efd4d6af1bb30cdbe (patch)
treee9b18b1b7d8bf2d70556cce12f78d948cfaa90cc /src/lib/evas/vg/evas_vg_cache.c
parent9a5dacdb3684c7b0e4bc939ef1920f69e82aeaa2 (diff)
evas vg: fix correct increment for tflags
Summary: There is warning. ``` lib/evas/vg/evas_vg_cache.c: In function ‘_vg_file_save’: lib/evas/vg/evas_vg_cache.c:185:30: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] tflags = alloca(len) + 1; ``` Previous code of a8d5f275c78 is intended to increase flags length. Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7972
Diffstat (limited to 'src/lib/evas/vg/evas_vg_cache.c')
-rw-r--r--src/lib/evas/vg/evas_vg_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/vg/evas_vg_cache.c b/src/lib/evas/vg/evas_vg_cache.c
index 9833ef65ae..bd5a4a4f14 100644
--- a/src/lib/evas/vg/evas_vg_cache.c
+++ b/src/lib/evas/vg/evas_vg_cache.c
@@ -181,8 +181,8 @@ _vg_file_save(Vg_File_Data *vfd, const char *file, const char *key, const char *
181 char *p, *pp; 181 char *p, *pp;
182 char *tflags; 182 char *tflags;
183 183
184 int len = strlen(flags); 184 int len = strlen(flags) + 1;
185 tflags = alloca(len) + 1; 185 tflags = alloca(len);
186 strncpy(tflags, flags, len); 186 strncpy(tflags, flags, len);
187 p = tflags; 187 p = tflags;
188 while (p) 188 while (p)