From fdfb0786b094d62e63763a5a258be901b4cbed94 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 6 Jul 2012 22:30:48 +0000 Subject: [PATCH] Fix typo in lib_inetntoa.c git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4916 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 5 +++++ lib/net/lib_inetntoa.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 93179b10aab..460294a5b11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2959,5 +2959,10 @@ * arch/*/include/limits.h: Change all values in all limits.h for all architectures to signed decimal; the hex values were not sign extending appropriate in most uses (reported by Lorenz Meier). + * arch/arm/src/stm32/chip/stm32f103/7vc_pinmap: Fix typographical error in + two pinmap definition files. + * lib/net/lib_inetntoa.c: Fix typographical error that cause compilation + failure on platforms that do not support passing of structures as + parameters. diff --git a/lib/net/lib_inetntoa.c b/lib/net/lib_inetntoa.c index f771e6b908f..0f4fb61df67 100644 --- a/lib/net/lib_inetntoa.c +++ b/lib/net/lib_inetntoa.c @@ -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;