Changeset 5754:b23d79c13370 in roaraudio for libroarrsound


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
  • libroarrsound/libroarrsound.c

    r5381 r5754  
    244244 
    245245static int libroarrsound_connect (struct libroarrsound * self) { 
    246  char * host; 
     246 const char * host; 
    247247 
    248248 if ( self->flags & LIBROARRSOUND_FLAGS_CONNECTED ) 
     
    252252 
    253253 if ( host == NULL ) 
    254   host = getenv("RSD_SERVER"); 
     254  host = roar_env_get("RSD_SERVER"); 
    255255 
    256256 // FIXME: we currently ignore the port. :( 
Note: See TracChangeset for help on using the changeset viewer.