chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus: rework bloom filter logic to operate with variable bloom filter
[elogind.git]
/
src
/
libsystemd
/
sd-bus
/
sd-memfd.c
diff --git
a/src/libsystemd/sd-bus/sd-memfd.c
b/src/libsystemd/sd-bus/sd-memfd.c
index 913be2086ac79461593e9174c0700c743dc117cb..b78ea6a313b9a686a10e96d663c8c6644f29b456 100644
(file)
--- a/
src/libsystemd/sd-bus/sd-memfd.c
+++ b/
src/libsystemd/sd-bus/sd-memfd.c
@@
-92,8
+92,10
@@
_public_ int sd_memfd_new(const char *name, sd_memfd **m) {
sz = ALIGN8(offsetof(struct kdbus_cmd_memfd_make, items)) +
ALIGN8(offsetof(struct kdbus_item, str)) +
l + 1;
sz = ALIGN8(offsetof(struct kdbus_cmd_memfd_make, items)) +
ALIGN8(offsetof(struct kdbus_item, str)) +
l + 1;
+
cmd = alloca0(sz);
cmd->size = sz;
cmd = alloca0(sz);
cmd->size = sz;
+
item = cmd->items;
item->size = ALIGN8(offsetof(struct kdbus_item, str)) + l + 1;
item->type = KDBUS_ITEM_MEMFD_NAME;
item = cmd->items;
item->size = ALIGN8(offsetof(struct kdbus_item, str)) + l + 1;
item->type = KDBUS_ITEM_MEMFD_NAME;