From 00de4f2b8b669eebc9a8fb5155d17c836023e6c1 Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Thu, 8 Mar 2012 08:45:51 +0100 Subject: Fixed appending in initializing string. --- src/task_proto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/task_proto.cc b/src/task_proto.cc index 8516e1c..4bcc3a8 100644 --- a/src/task_proto.cc +++ b/src/task_proto.cc @@ -104,7 +104,7 @@ int callback_lws_task(struct libwebsocket_context * context, // t.id, t.title.c_str(), t.desc.c_str(), t.x, t.y); // init_str.append(task_cmd(t)); - init_str = msg_tostring(create_msg(cmd::add, t)); + init_str += msg_tostring(create_msg(cmd::add, t)); } std::string msg; -- cgit v1.2.3