Changeset 4463:c4caff931828 in roaraudio


Ignore:
Timestamp:
10/10/10 15:57:49 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

corrected use of strdup() to roar_mm_strdup()

Location:
libroar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroar/pinentry.c

    r3811 r4463  
    222222 if ( (tp = strstr(realbuf, " ")) == NULL ) { 
    223223  if ( line != NULL ) 
    224    *line = strdup(realbuf); 
     224   *line = roar_mm_strdup(realbuf); 
    225225 
    226226  if ( opts != NULL ) 
     
    239239  if ( !strcmp(realbuf, "D") ) { 
    240240   if ( opts != NULL ) 
    241     *opts = strdup(tp+1); 
     241    *opts = roar_mm_strdup(tp+1); 
    242242 
    243243   return roar_pinentry_recv(pe, line, NULL); 
     
    245245 
    246246  if ( line != NULL ) 
    247    *line = strdup(realbuf); 
     247   *line = roar_mm_strdup(realbuf); 
    248248 
    249249  if ( opts != NULL ) 
  • libroar/sshaskpass.c

    r3900 r4463  
    6464  return -1; 
    6565 
    66  *pw = strdup(buf); 
     66 *pw = roar_mm_strdup(buf); 
    6767 
    6868 return 0; 
Note: See TracChangeset for help on using the changeset viewer.