diff options
author | Vyacheslav Cherkashin <v.cherkashin@samsung.com> | 2013-07-23 13:58:57 +0400 |
---|---|---|
committer | Vyacheslav Cherkashin <v.cherkashin@samsung.com> | 2013-07-23 13:58:57 +0400 |
commit | 49b140726ccfad54fac4b3a571e5be2843e9b53d (patch) | |
tree | 1df2152db340321254efbf5bf9f5fb995e5f4209 /writer | |
parent | 5276bd728791b96f043fbca6faee1229127e7a79 (diff) | |
download | swap-modules-49b140726ccfad54fac4b3a571e5be2843e9b53d.tar.gz swap-modules-49b140726ccfad54fac4b3a571e5be2843e9b53d.tar.bz2 swap-modules-49b140726ccfad54fac4b3a571e5be2843e9b53d.zip |
[FIX] add null to the end of the string
Diffstat (limited to 'writer')
-rw-r--r-- | writer/swap_writer_module.c | 2 |
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; } |