summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys-utils/dmesg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
index ad47ac44d..0e2fad658 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -1016,7 +1016,7 @@ mesg_output:
*/
if (ctl->force_prefix) {
if (!line) {
- mesg_copy = strdup(rec->mesg);
+ mesg_copy = xstrdup(rec->mesg);
line = strtok(mesg_copy, "\n");
mesg_size = strlen(line);
}