summaryrefslogtreecommitdiff
path: root/src/msgparser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/msgparser.cc')
-rw-r--r--src/msgparser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msgparser.cc b/src/msgparser.cc
index d8c47f7..1ea2f31 100644
--- a/src/msgparser.cc
+++ b/src/msgparser.cc
@@ -258,7 +258,7 @@ std::string msg_tostring(msg_t m) {
case cmd::add: {
// printf("msg: %d, %d, %d, %s, %s\n", m.add.id, m.add.x, m.add.y, m.add.title, m.add.desc);
// snprintf(buf, BUF_SIZE, "add %d %s %s %d %d;",
- asprintf(&buf, "add %d %s %s %d %d;",
+ asprintf(&buf, "add %d \"%s\" \"%s\" %d %d;",
m.add.id,
m.add.title, m.add.desc,
m.add.x, m.add.y);