projects
/
platform
/
core
/
appfw
/
com-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
allocate BUFSIZ size instead of payload_size when creating packet
[platform/core/appfw/com-core.git]
/
src
/
packet.c
diff --git
a/src/packet.c
b/src/packet.c
index
6057b56
..
3c3fb79
100644
(file)
--- a/
src/packet.c
+++ b/
src/packet.c
@@
-378,7
+378,7
@@
EAPI struct packet *packet_create(const char *cmd, const char *fmt, ...)
payload_size = sizeof(*packet->data) + BUFSIZ;
packet->refcnt = 0;
- packet->data = calloc(1,
payload_size
);
+ packet->data = calloc(1,
BUFSIZ
);
if (!packet->data) {
ErrPrint("Heap: %s\n", strerror(errno));
packet->state = INVALID;