mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
examples/wgetjson: fix concatenation len buffer json
This commit is contained in:
parent
5c1626c764
commit
b11dcc34c6
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ static int wgetjson_callback(FAR char **buffer, int offset, int datend,
|
|||
if (new_json_buff)
|
||||
{
|
||||
g_json_buff = new_json_buff;
|
||||
memcpy(&g_json_buff[g_json_bufflen - 1], &((*buffer)[offset]),
|
||||
memcpy(&g_json_buff[g_json_bufflen], &((*buffer)[offset]),
|
||||
len);
|
||||
g_json_buff[g_json_bufflen + len] = 0;
|
||||
g_json_bufflen += org;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue