From d831b3e9f923c79aeee87b03419acf017b64f57a Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Thu, 8 Mar 2012 08:55:34 +0100 Subject: Added quotes arond all strings in outgoing messages. --- src/msgparser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3