diff options
author | James Booth <boothj5@gmail.com> | 2014-04-02 21:01:20 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-04-02 21:01:20 +0100 |
commit | a720ef262774e51066f5885c76deebde83dec74e (patch) | |
tree | ae401084d45f8edd57f602cbc53a2caf74e6c3eb /src/ui/inputwin.c | |
parent | e1db5318758dcfc72acb698938fc17c407a24cb5 (diff) | |
download | profani-tty-a720ef262774e51066f5885c76deebde83dec74e.tar.gz |
Removed strcpy calls
Diffstat (limited to 'src/ui/inputwin.c')
-rw-r--r-- | src/ui/inputwin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index b7c5270d..5b5fb381 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -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(); |