- if( tpptr != NULL )
- {
- SIaddress( tpptr->addr, (void *) &ibuf, AC_TODOT ); // convert to dot fmt
- strcpy( buf, ibuf ); // copy into caller's buffer
+ if( tpptr != NULL )
+ {
+ SIaddress( tpptr->addr, (void *) &ibuf, AC_TODOT ); // convert to dot fmt
+ strncpy( buf, ibuf, 256 ); // copy into caller's buffer