Changeset 5024:a05dd5976bc3 in roaraudio
- Timestamp:
- 05/28/11 11:25:43 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/simple.c
r5017 r5024 223 223 if ( type == ROAR_SOCKET_TYPE_DECNET ) { 224 224 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++); 226 226 } else { 227 227 return -1; … … 229 229 #ifdef ROAR_HAVE_IPV4 230 230 } else { 231 strncpy(file, inet_ntoa(socket_addr.sin_addr), 79);231 strncpy(file, inet_ntoa(socket_addr.sin_addr), sizeof(file) - 1); 232 232 #endif 233 233 }
Note: See TracChangeset
for help on using the changeset viewer.