projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add "-n trace" option to print trace name
[babeltrace.git]
/
formats
/
ctf
/
ctf.c
diff --git
a/formats/ctf/ctf.c
b/formats/ctf/ctf.c
index 9af3f45386bcf721fd590ca8a0ac893c79622f9d..8b9441fdd701ea078bd2839b1009af05e5e1b117 100644
(file)
--- a/
formats/ctf/ctf.c
+++ b/
formats/ctf/ctf.c
@@
-1167,6
+1167,8
@@
int ctf_open_trace_read(struct ctf_trace *td, const char *path, int flags,
ret = -errno;
goto error_dirfd;
}
+ strncpy(td->path, path, PATH_MAX);
+ td->path[PATH_MAX - 1] = '\0';
/*
* Keep the metadata file separate.
This page took
0.023379 seconds
and
4
git commands to generate.