Changeset 4049:802580eeb8a8 in roaraudio for roard/meta.c


Ignore:
Timestamp:
07/09/10 15:46:06 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed security warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/meta.c

    r3811 r4049  
    6464   } 
    6565 
    66    if ( (c = malloc(strlen(val)+1)) == NULL ) { 
     66   if ( (c = strdup(val)) == NULL ) { 
    6767    s->meta[i].type = ROAR_META_TYPE_NONE; 
    6868    s->meta[i].key[0] = 0; 
     
    7070   } 
    7171 
    72    strcpy(c, val); 
    7372   s->meta[i].value = c; 
    7473 
Note: See TracChangeset for help on using the changeset viewer.