X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=filter.c;h=cb52ade5919e1cd2797551856763408d756523ef;hb=1303c7227183737880de588060e229446b644335;hp=65bd38a673cc9685e958ccb9871065462be05dfa;hpb=619fd0273195809d9bc1e1d36814307957303e8e;p=pkg%2Fabook.git diff --git a/filter.c b/filter.c index 65bd38a..cb52ade 100644 --- a/filter.c +++ b/filter.c @@ -916,7 +916,7 @@ pine_fixbuf(char *buf) { int i,j; - for(i=0,j=0; j < (int)strlen(buf); i++, j++) + for(i = 0,j = 0; j < (int)strlen(buf); i++, j++) buf[i] = buf[j] == '\n' ? buf[++j] : buf[j]; } @@ -929,15 +929,15 @@ pine_convert_emails(char *s) if(s == NULL || *s != '(') return; - for(i=0; s[i]; i++ ) - s[i] = s[i+1]; + for(i = 0; s[i]; i++) + s[i] = s[i + 1]; if( ( tmp = strchr(s,')')) ) - *tmp=0; + *tmp = '\0'; for(i = 1; ( tmp = strchr(s, ',') ) != NULL ; i++, s = tmp + 1) if(i > MAX_LIST_ITEMS - 1) { - *tmp = 0; + *tmp = '\0'; break; }