Changeset 5008:f66a2be5b974 in roaraudio for libroar/env.c


Ignore:
Timestamp:
05/24/11 21:38:15 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use roar_mm_str[ls]{cat,cpy}()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/env.c

    r4937 r5008  
    141141   break; 
    142142  case HOME: 
    143     strcpy(out, home); 
    144     strcat(out, inpath+1); // strip only ~, so we have the / if home is not /-terminated. 
     143    roar_mm_strlcpy(out, home, len); 
     144    roar_mm_strlcat(out, inpath+1, len); // strip only ~, so we have the / if home is not /-terminated. 
    145145   break; 
    146146  default: 
Note: See TracChangeset for help on using the changeset viewer.