projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f045a2f
)
output-item: Allocate correct size in message_item_create().
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 24 Jan 2021 05:01:55 +0000
(21:01 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 24 Jan 2021 05:02:07 +0000
(21:02 -0800)
src/output/output-item.c
patch
|
blob
|
history
diff --git
a/src/output/output-item.c
b/src/output/output-item.c
index c39e8cd32655843180078a341fd0df5971a0d8f3..9febcfabd5ba9cf8166d44276207754a27a6fde7 100644
(file)
--- a/
src/output/output-item.c
+++ b/
src/output/output-item.c
@@
-305,7
+305,7
@@
image_item_create (cairo_surface_t *image)
struct output_item *
message_item_create (const struct msg *msg)
{
- struct output_item *item = xmalloc (sizeof *
msg
);
+ struct output_item *item = xmalloc (sizeof *
item
);
*item = (struct output_item) {
OUTPUT_ITEM_INITIALIZER (OUTPUT_ITEM_MESSAGE),
.message = msg_dup (msg),