projects
/
deliverable
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix context append incorrect copy length
[deliverable/lttng-modules.git]
/
ltt-context.c
diff --git
a/ltt-context.c
b/ltt-context.c
index 961d80e111fcf25d57d48b332b3b58360e31bdff..e0cd073c9c09d854c236b23bb370a224546a8a6a 100644
(file)
--- a/
ltt-context.c
+++ b/
ltt-context.c
@@
-33,7
+33,7
@@
struct lttng_ctx_field *lttng_append_context(struct lttng_ctx **ctx_p)
if (!new_fields)
return NULL;
if (ctx->fields)
- memcpy(new_fields, ctx->fields, ctx->nr_fields);
+ memcpy(new_fields, ctx->fields,
sizeof(*ctx->fields) *
ctx->nr_fields);
kfree(ctx->fields);
ctx->fields = new_fields;
}
This page took
0.030347 seconds
and
5
git commands to generate.