Commit 05b8f5b0996e20cca41bbac8088b9f65409c42e3

Kano 2012-06-28T05:59:31

api.c fix json already closed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/api.c b/api.c
index 13cb11c..c4a0b9f 100644
--- a/api.c
+++ b/api.c
@@ -2284,9 +2284,6 @@ static void checkcommand(__maybe_unused SOCKETTYPE c, char *param, bool isjson, 
 		access ? YES : NO);
 
 	strcat(io_buffer, buf);
-
-	if (isjson)
-		strcat(io_buffer, JSON_CLOSE);
 }
 
 static void send_result(SOCKETTYPE c, bool isjson)