mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
change strcpy to strlcpy
Change-Id: I8b9429a3c225a82842fce136bdb14b8b135066d3 Signed-off-by: lilei19 <lilei19@xiaomi.com>
This commit is contained in:
@@ -177,12 +177,13 @@ int xmlrpc_buildresponse(struct xmlrpc_s *xmlcall, char *args, ...)
|
||||
return -1;
|
||||
}
|
||||
|
||||
strcpy(xmlcall->response, "HTTP/1.1 200 OK\n"
|
||||
"Connection: close\n"
|
||||
"Content-length: xyza\n"
|
||||
"Content-Type: text/xml\n"
|
||||
"Server: Lightweight XMLRPC\n\n"
|
||||
"<?xml version=\"1.0\"?>\n" "<methodResponse>\n");
|
||||
strlcpy(xmlcall->response, "HTTP/1.1 200 OK\n"
|
||||
"Connection: close\n"
|
||||
"Content-length: xyza\n"
|
||||
"Content-Type: text/xml\n"
|
||||
"Server: Lightweight XMLRPC\n\n"
|
||||
"<?xml version=\"1.0\"?>\n" "<methodResponse>\n",
|
||||
sizeof(xmlcall->response));
|
||||
|
||||
if (xmlcall->error)
|
||||
{
|
||||
|
Reference in New Issue
Block a user