Changeset 5895:2bcffab4cd73 in roaraudio for libroar/pinentry.c


Ignore:
Timestamp:
04/14/13 13:38:03 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Moved away from roar_libroar_get_path_static()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/pinentry.c

    r5832 r5895  
    4848#ifdef _CAN_OPERATE 
    4949 int in[2], out[2]; 
     50 char * bin_pinentry; 
    5051 
    5152 if ( pe == NULL ) 
     
    112113     ROAR_U_EXIT(1); 
    113114 
    114     execlp(roar_libroar_get_path_static("bin-pinentry"), "RoarAudio", "--display", display, "--ttytype", term, "--ttyname", tty, NULL); 
     115    bin_pinentry = roar_libroar_get_path("bin-pinentry", 0, NULL, NULL); 
     116    if ( bin_pinentry == NULL ) 
     117     ROAR_U_EXIT(1); 
     118 
     119    execlp(bin_pinentry, "RoarAudio", "--display", display, "--ttytype", term, "--ttyname", tty, NULL); 
     120 
     121    roar_mm_free(bin_pinentry); 
    115122 
    116123    ROAR_U_EXIT(1); 
Note: See TracChangeset for help on using the changeset viewer.