Changeset 5024:a05dd5976bc3 in roaraudio


Ignore:
Timestamp:
05/28/11 11:25:43 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

small fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/simple.c

    r5017 r5024  
    223223 if ( type == ROAR_SOCKET_TYPE_DECNET ) { 
    224224  if ( roar_socket_get_local_nodename() ) { 
    225    snprintf(file, 24,"%s::roar$TMP%04x%02x", roar_socket_get_local_nodename(), getpid(), count++); 
     225   snprintf(file, 24, "%s::roar$TMP%04x%02x", roar_socket_get_local_nodename(), getpid(), count++); 
    226226  } else { 
    227227   return -1; 
     
    229229#ifdef ROAR_HAVE_IPV4 
    230230 } else { 
    231   strncpy(file, inet_ntoa(socket_addr.sin_addr), 79); 
     231  strncpy(file, inet_ntoa(socket_addr.sin_addr), sizeof(file) - 1); 
    232232#endif 
    233233 } 
Note: See TracChangeset for help on using the changeset viewer.