Minor changes: replace directy call to memcpy by MEMCPY macro.

This commit is contained in:
fbernon
2008-01-26 16:11:39 +00:00
parent e937521014
commit 7b11fb75d9
4 changed files with 34 additions and 34 deletions

View File

@@ -199,7 +199,7 @@ lwip_gethostbyname_r(const char *name, struct hostent *ret, char *buf,
}
/* copy the hostname into buf */
memcpy(hostname, name, namelen);
MEMCPY(hostname, name, namelen);
hostname[namelen] = 0;
/* fill hostent */
@@ -330,7 +330,7 @@ lwip_getaddrinfo(const char *nodename, const char *servname,
if (ai->ai_canonname == NULL) {
goto memerr;
}
memcpy(ai->ai_canonname, nodename, namelen);
MEMCPY(ai->ai_canonname, nodename, namelen);
ai->ai_canonname[namelen] = 0;
}
ai->ai_addrlen = sizeof(struct sockaddr_in);