Changeset 5754:b23d79c13370 in roaraudio for libroar/file.c


Ignore:
Timestamp:
11/16/12 16:49:56 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

avoid getenv() and use more portable roar_env_get(). Also improved security as we enfore const now on bufferes obtained from the env.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/file.c

    r5381 r5754  
    8686 const char * k; 
    8787 
    88  if ( (k = getenv("CDDA_DEVICE")) != NULL ) 
     88 if ( (k = roar_env_get("CDDA_DEVICE")) != NULL ) 
    8989  return k; 
    9090 
Note: See TracChangeset for help on using the changeset viewer.