projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kconsumerd use the output parameter
[lttng-tools.git]
/
ltt-sessiond
/
ust-ctl.c
diff --git
a/ltt-sessiond/ust-ctl.c
b/ltt-sessiond/ust-ctl.c
index 781a6cca98f87866b14135a928e02c88e151eb8f..fe65fafe2c6f3d00a930c5108595657d91522000 100644
(file)
--- a/
ltt-sessiond/ust-ctl.c
+++ b/
ltt-sessiond/ust-ctl.c
@@
-3,8
+3,8
@@
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation;
either
version 2
- * of the License
, or (at your option) any later version
.
+ * as published by the Free Software Foundation;
only
version 2
+ * of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-23,8
+23,7
@@
#include <string.h>
#include <unistd.h>
#include <string.h>
#include <unistd.h>
-#include "libustctl.h"
-#include "liblttsessiondcomm.h"
+#include <lttng-sessiond-comm.h>
#include "lttngerr.h"
#include "ust-ctl.h"
#include "lttngerr.h"
#include "ust-ctl.h"
@@
-90,7
+89,8
@@
void get_traces_per_session(struct ltt_session *session, struct lttng_trace *tra
if (session->kern_session_count > 0) {
trace.type = KERNEL;
if (session->kern_session_count > 0) {
trace.type = KERNEL;
- strncpy(trace.name, "kernel", 6);
+ strncpy(trace.name, "kernel", sizeof(trace.name));
+ trace.name[sizeof(trace.name) - 1] = '\0';
memcpy(&traces[i], &trace, sizeof(trace));
}
}
memcpy(&traces[i], &trace, sizeof(trace));
}
}
This page took
0.02687 seconds
and
5
git commands to generate.