From 90853abb086ceb34a70bf539d3aeb14d47985959 Mon Sep 17 00:00:00 2001 From: szlr Date: Wed, 26 Apr 2023 09:15:31 +0800 Subject: [PATCH] =?UTF-8?q?[HUST=20CSE]=20for=E5=BE=AA=E7=8E=AF=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=9D=A1=E4=BB=B6=E5=87=BA=E9=94=99=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E8=AF=BB=E5=8F=96=E8=B6=8A=E7=95=8C=20(#7352)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/net/at/src/at_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/net/at/src/at_server.c b/components/net/at/src/at_server.c index fe150d83f7..f55891de11 100644 --- a/components/net/at/src/at_server.c +++ b/components/net/at/src/at_server.c @@ -399,7 +399,7 @@ static rt_err_t at_cmd_get_name(const char *cmd_buffer, char *cmd_name) RT_ASSERT(cmd_name); RT_ASSERT(cmd_buffer); - for (i = 0; i < strlen(cmd_buffer) + 1; i++) + for (i = 0; i < strlen(cmd_buffer); i++) { if (*(cmd_buffer + i) == AT_CMD_QUESTION_MARK || *(cmd_buffer + i) == AT_CMD_EQUAL_MARK || *(cmd_buffer + i) == AT_CMD_CR