Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix invalid TRACE setting in print version
[src/app-framework-binder.git]
/
src
/
afb-evt.c
diff --git
a/src/afb-evt.c
b/src/afb-evt.c
index
0467bef
..
a75cbbc
100644
(file)
--- a/
src/afb-evt.c
+++ b/
src/afb-evt.c
@@
-86,7
+86,7
@@
struct afb_evtid {
int id;
/* fullname of the event */
- char fullname[
1
];
+ char fullname[];
};
/*
@@
-296,7
+296,7
@@
struct afb_evtid *afb_evt_evtid_create(const char *fullname)
/* allocates the event */
len = strlen(fullname);
- evtid = malloc(len + sizeof * evtid);
+ evtid = malloc(len +
1 +
sizeof * evtid);
if (evtid == NULL)
goto error;