mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 04:26:04 +08:00
change strcpy to strlcpy
Change-Id: I8b9429a3c225a82842fce136bdb14b8b135066d3 Signed-off-by: lilei19 <lilei19@xiaomi.com>
This commit is contained in:
@@ -609,7 +609,7 @@ static inline int httpd_parse(struct httpd_state *pstate)
|
||||
}
|
||||
|
||||
*v = '\0';
|
||||
strcpy(pstate->ht_filename, start);
|
||||
strlcpy(pstate->ht_filename, start, sizeof(pstate->ht_filename));
|
||||
state = STATE_HEADER;
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user