Changeset 4049:802580eeb8a8 in roaraudio
- Timestamp:
- 07/09/10 15:46:06 (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/roard/protocol-rplay.c
r3988 r4049 219 219 s -= m * 60; 220 220 221 sprintf(uptime, "%.2i:%.2i:%.2i", h, m, s); 221 snprintf(uptime, sizeof(uptime)-1, "%.2i:%.2i:%.2i", h, m, s); 222 uptime[sizeof(uptime)-1] = 0; 222 223 223 224 switch (ROAR_CODEC_BYTE_ORDER(g_sa->codec)) { -
roard/meta.c
r3811 r4049 64 64 } 65 65 66 if ( (c = malloc(strlen(val)+1)) == NULL ) {66 if ( (c = strdup(val)) == NULL ) { 67 67 s->meta[i].type = ROAR_META_TYPE_NONE; 68 68 s->meta[i].key[0] = 0; … … 70 70 } 71 71 72 strcpy(c, val);73 72 s->meta[i].value = c; 74 73 -
roard/roard.c
r4012 r4049 444 444 445 445 if ( p->port ) { 446 sprintf(port, "%i", p->port); 446 snprintf(port, sizeof(port)-1, "%i", p->port); 447 port[sizeof(port)-1] = 0; 447 448 } else { 448 449 strcpy(port, "(none)");
Note: See TracChangeset
for help on using the changeset viewer.