mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Fix an addressing problem in host file read logic
This commit is contained in:
@@ -287,7 +287,7 @@ ssize_t lib_parse_hostfile(FAR FILE *stream, FAR struct hostent *host,
|
||||
|
||||
addrstring[0] = ch;
|
||||
|
||||
nwritten = lib_copystring(stream, addrstring, &nread, 48, &ch);
|
||||
nwritten = lib_copystring(stream, &addrstring[1], &nread, 47, &ch);
|
||||
if (nwritten <= 0)
|
||||
{
|
||||
return nwritten;
|
||||
|
||||
Reference in New Issue
Block a user