Changeset 1653


Ignore:
Timestamp:
Jan 2, 2008 8:22:38 AM (12 years ago)
Author:
bennylp
Message:

Minor fix: doesn't need to make TBuf static in pj_inet_ntoa() for Symbian

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/sock_symbian.cpp

    r1647 r1653  
    277277PJ_DEF(char*) pj_inet_ntoa(pj_in_addr inaddr) 
    278278{ 
    279     static TBuf<20> str16; 
    280     static char str8[20]; 
     279        static char str8[PJ_INET_ADDRSTRLEN]; 
     280    TBuf<PJ_INET_ADDRSTRLEN> str16(0); 
    281281 
    282282    /* (Symbian IP address is in host byte order) */ 
     
    295295PJ_DEF(int) pj_inet_aton(const pj_str_t *cp, struct pj_in_addr *inp) 
    296296{ 
    297     enum { MAXIPLEN = 16 }; 
     297    enum { MAXIPLEN = PJ_INET_ADDRSTRLEN }; 
    298298 
    299299    /* Initialize output with PJ_INADDR_NONE. 
Note: See TracChangeset for help on using the changeset viewer.