Changeset 4885:01d694a7fdf7 in roaraudio for roarclients/roar-config.c


Ignore:
Timestamp:
04/28/11 17:28:25 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Some cleanup of roarclients to fix ckport warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roar-config.c

    r4725 r4885  
    6868} 
    6969 
     70#define _strcat(buf, n) strncat(buf, n, sizeof(buf)-1-strlen(buf)) 
     71 
    7072int main (int argc, char * argv[]) { 
    7173 enum { NORMAL, PC } mode = NORMAL; 
     
    121123    if ( cflags || libs ) { 
    122124     if ( cflags ) 
    123       strcat(buf, flags_ptr->cflags); 
     125      _strcat(buf, flags_ptr->cflags); 
    124126 
    125127     if ( libs ) 
    126       strcat(buf, flags_ptr->libs); 
     128      _strcat(buf, flags_ptr->libs); 
    127129 
    128130     puts(buf); 
Note: See TracChangeset for help on using the changeset viewer.