diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2012-03-08 08:55:34 +0100 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2012-03-08 08:55:34 +0100 |
commit | d831b3e9f923c79aeee87b03419acf017b64f57a (patch) | |
tree | 5f146b9e67cd8d678275a663ce660a18feb91ad3 | |
parent | 00de4f2b8b669eebc9a8fb5155d17c836023e6c1 (diff) |
Added quotes arond all strings in outgoing messages.
-rw-r--r-- | src/msgparser.cc | 2 |
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); |