Changeset 5896:aef8b3923086 in roaraudio for libroar/vio_stream.c
- Timestamp:
- 04/14/13 13:55:14 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/vio_stream.c
r5823 r5896 159 159 static int _roar_simple_new_stream_obj (struct roar_connection * con, struct roar_stream * s, uint32_t rate, uint32_t channels, uint32_t bits, uint32_t codec, int dir, int mixer) { 160 160 struct roar_libroar_config * config = roar_libroar_get_config(); 161 char file[80] = {0};161 char file[80] = ""; 162 162 int fh = -1, listen = -1; 163 163 static int count = 0; … … 217 217 if ( sockname.type == ROAR_SOCKET_TYPE_DECNET ) { 218 218 if ( roar_socket_get_local_nodename() ) { 219 snprintf(file, 24, "%s::roar$TMP%04x%02x", roar_socket_get_local_nodename(), getpid(), count++);219 snprintf(file, sizeof(file), "%s::roar$TMP%04x%02x", roar_socket_get_local_nodename(), getpid(), count++); 220 220 } else { 221 221 return -1;
Note: See TracChangeset
for help on using the changeset viewer.