Removed strcpy calls

This commit is contained in:
James Booth
2014-04-02 21:01:20 +01:00
parent e1db531875
commit a720ef2627
8 changed files with 31 additions and 34 deletions

View File

@@ -226,7 +226,7 @@ static void
_inp_replace_input(char *input, const char * const new_input, int *size)
{
int display_size;
strcpy(input, new_input);
strncpy(input, new_input, INP_WIN_MAX);
*size = strlen(input);
display_size = g_utf8_strlen(input, *size);
inp_win_reset();