Fix typo in lib_inetntoa.c

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4916 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-07-06 22:30:48 +00:00
parent 70ccb11ade
commit fdfb0786b0
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ FAR char *inet_ntoa(struct in_addr in)
#else
FAR char *_inet_ntoa(in_addr_t in)
{
static char buffer[NET_ADDRSTRLEN+2];
static char buffer[INET_ADDRSTRLEN+2];
FAR char *ptr = (FAR char*)∈
sprintf(buffer, "%d.%d.%d.%d", ptr[0], ptr[1], ptr[2], ptr[3]);
return buffer;