Changeset 4464:d0eccaeb3983 in roaraudio


Ignore:
Timestamp:
10/10/10 16:05:22 (8 years ago)
Author:
phi
Branch:
default
Message:

corrected lion end removeal loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/sshaskpass.c

    r4463 r4464  
    4141 char   buf[1024]; 
    4242 int    pos; 
     43 int    i; 
    4344 
    4445 if ( pw == NULL ) 
     
    5859 pos = strlen(buf); 
    5960 
    60  for (; pos > -1 && (buf[pos] == '\r' || buf[pos] == '\n'); pos--) 
    61   buf[pos] = 0; 
     61 ROAR_DBG("roar_sshaskpass_getpass(pw=%p, desc='%s'): pos=%i", pw, desc, pos); 
     62 
     63 for (i = pos - 1; i >= 0 && (buf[i] == '\r' || buf[i] == '\n'); i--, pos--) { 
     64  buf[i] = 0; 
     65 } 
     66 
     67 ROAR_DBG("roar_sshaskpass_getpass(pw=%p, desc='%s'): pos=%i", pw, desc, pos); 
    6268 
    6369 if ( pos == 0 ) 
Note: See TracChangeset for help on using the changeset viewer.