Changeset 1067:a2d7c244141b in roaraudio
- Timestamp:
- 12/28/08 02:30:32 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/simple.c
r690 r1067 122 122 123 123 if ( type == ROAR_SOCKET_TYPE_UNIX ) { 124 s printf(file, "/tmp/.libroar-simple-stream.%i-%i", getpid(), count++);124 snprintf(file, 79, "/tmp/.libroar-simple-stream.%i-%i", getpid(), count++); 125 125 } else if ( type == ROAR_SOCKET_TYPE_DECNET ) { 126 126 if ( roar_socket_get_local_nodename() ) { 127 s printf(file,"%s::roar$TMP%04x%02x", roar_socket_get_local_nodename(), getpid(), count++);127 snprintf(file, 24,"%s::roar$TMP%04x%02x", roar_socket_get_local_nodename(), getpid(), count++); 128 128 } else { 129 129 return -1; -
libroar/socket.c
r1063 r1067 455 455 456 456 if ( port ) { 457 s printf(obj, "%i", port); // no need for snprintf() as dec(port) is smaller than obj[]457 snprintf(obj, 7, "%i", port); // no need for snprintf() as dec(port) is smaller than obj[] 458 458 } else { 459 459 *obj = 0;
Note: See TracChangeset
for help on using the changeset viewer.