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
  • commands.c

    r3677 r3773  
    283283                        0, COLS-extra_space, 0, 0, 
    284284                        prompt, sizeof (prompt), 0); 
    285     strncat (prompt, "...?", sizeof (prompt)); 
     285    safe_strcat (prompt, sizeof (prompt), "...?"); 
    286286  } 
    287287  else 
    288     strncat (prompt, "?", sizeof (prompt)); 
     288    safe_strcat (prompt, sizeof (prompt), "?"); 
    289289 
    290290  if (query_quadoption (OPT_BOUNCE, prompt) != M_YES)