diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-01-02 08:22:38 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-01-02 08:22:38 +0000 |
commit | f823177cae22a9be300a01ecdaa791f3cc2b19ac (patch) | |
tree | f88e7d0977f10c0d127363226853a2b872b73682 /pjlib/src/pj/sock_symbian.cpp | |
parent | aa585b3dbe9af66cc5868dba31b3dac18de08f6d (diff) |
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
Diffstat (limited to 'pjlib/src/pj/sock_symbian.cpp')
-rw-r--r-- | pjlib/src/pj/sock_symbian.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<PJ_INET_ADDRSTRLEN> 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 |