From f823177cae22a9be300a01ecdaa791f3cc2b19ac Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 2 Jan 2008 08:22:38 +0000 Subject: Minor fix: doesn't need to make TBuf static in pj_inet_ntoa() for Symbian git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1653 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pj/sock_symbian.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pjlib/src/pj') diff --git a/pjlib/src/pj/sock_symbian.cpp b/pjlib/src/pj/sock_symbian.cpp index aab6d4d8..7b09b4f0 100644 --- a/pjlib/src/pj/sock_symbian.cpp +++ b/pjlib/src/pj/sock_symbian.cpp @@ -276,8 +276,8 @@ PJ_DEF(pj_uint32_t) pj_htonl(pj_uint32_t hostlong) */ PJ_DEF(char*) pj_inet_ntoa(pj_in_addr inaddr) { - static TBuf<20> str16; - static char str8[20]; + static char str8[PJ_INET_ADDRSTRLEN]; + TBuf str16(0); /* (Symbian IP address is in host byte order) */ TInetAddr temp_addr((TUint32)pj_ntohl(inaddr.s_addr), (TUint)0); @@ -294,7 +294,7 @@ PJ_DEF(char*) pj_inet_ntoa(pj_in_addr inaddr) */ PJ_DEF(int) pj_inet_aton(const pj_str_t *cp, struct pj_in_addr *inp) { - enum { MAXIPLEN = 16 }; + enum { MAXIPLEN = PJ_INET_ADDRSTRLEN }; /* Initialize output with PJ_INADDR_NONE. * Some apps relies on this instead of the return value -- cgit v1.2.3