From a99c3e6408f9f0e517630f3c134614bbfa1dd11d Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Sat, 13 Nov 2010 15:49:38 +0200 Subject: [PATCH] ladishd: remove unneeded asignment unescape() receives length that includes the terminating nul char --- daemon/room_load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/room_load.c b/daemon/room_load.c index 3afa2190..11d5508f 100644 --- a/daemon/room_load.c +++ b/daemon/room_load.c @@ -110,7 +110,7 @@ static void callback_elstart(void * data, const char * el, const char ** attr) return; } - room_ptr->project_name[unescape(name, len, room_ptr->project_name)] = 0; + unescape(name, len, room_ptr->project_name); log_info("Project '%s' with uuid %s", room_ptr->project_name, uuid_str); @@ -796,7 +796,7 @@ static void project_name_elstart_callback(void * data, const char * el, const ch log_error("malloc() failed for project name with length %zu", len); } - context_ptr->str[unescape(name, len, context_ptr->str)] = 0; + unescape(name, len, context_ptr->str); } XML_StopParser(context_ptr->parser, XML_TRUE);