summaryrefslogtreecommitdiff
path: root/writer
diff options
context:
space:
mode:
Diffstat (limited to 'writer')
-rw-r--r--writer/swap_writer_module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/writer/swap_writer_module.c b/writer/swap_writer_module.c
index 8bc2c7e6..95f1acef 100644
--- a/writer/swap_writer_module.c
+++ b/writer/swap_writer_module.c
@@ -475,6 +475,8 @@ static int pack_args(char *buf, int len, const char *fmt, struct pt_regs *regs)
if (ret < 0)
return -EFAULT;
+ buf[ret] = '\0';
+
buf += ret + 1;
len -= ret + 1;
}