forked from enlightenment/efl
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 a8d5f275c7
is intended to increase flags length.
Reviewers: Hermet
Reviewed By: Hermet
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7972
This commit is contained in:
parent
9a5dacdb36
commit
100a5b210d
|
@ -181,8 +181,8 @@ _vg_file_save(Vg_File_Data *vfd, const char *file, const char *key, const char *
|
|||
char *p, *pp;
|
||||
char *tflags;
|
||||
|
||||
int len = strlen(flags);
|
||||
tflags = alloca(len) + 1;
|
||||
int len = strlen(flags) + 1;
|
||||
tflags = alloca(len);
|
||||
strncpy(tflags, flags, len);
|
||||
p = tflags;
|
||||
while (p)
|
||||
|
|
Loading…
Reference in New Issue