Show
Ignore:
Timestamp:
2004-10-30 14:59:00 (4 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

safe_strcat, safe_strncat. Thanks to Ulf H. for noting the wrong
use of strncat in part of the mutt code base.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • browser.c

    r3691 r3773  
    575575      { 
    576576        getcwd (LastDir, sizeof (LastDir)); 
    577         strcat (LastDir, "/");  /* __STRCAT_CHECKED__ */ 
    578         strncat (LastDir, f, i); 
     577        safe_strcat (LastDir, sizeof (LastDir), "/"); 
     578        safe_strncat (LastDir, sizeof (LastDir), f, i); 
    579579      } 
    580580    }