Changeset 6025:0edaf515bdbf in roaraudio
- Timestamp:
- 07/14/14 10:06:24 (10 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/socket.c
r6022 r6025 610 610 611 611 if ( *(del+2) == '#' ) { // assume we have node::#num 612 port = atoi(del+ 2);612 port = atoi(del+3); 613 613 } 614 614 615 615 if ( port ) { 616 snprintf(obj, 7, "%i", port); // no need for snprintf() as dec(port) is smaller than obj[]616 snprintf(obj, sizeof(obj), "%i", port); // no need for snprintf() as dec(port) is smaller than obj[] 617 617 } else { 618 *obj = 0; 619 strncat(obj, del+2, 79); 618 roar_mm_strlcpy(obj, del+2, sizeof(obj)); 620 619 } 621 620
Note: See TracChangeset
for help on using the changeset viewer.