about summary refs log tree commit diff stats
path: root/src/ui/inputwin.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-04-02 21:01:20 +0100
committerJames Booth <boothj5@gmail.com>2014-04-02 21:01:20 +0100
commita720ef262774e51066f5885c76deebde83dec74e (patch)
treeae401084d45f8edd57f602cbc53a2caf74e6c3eb /src/ui/inputwin.c
parente1db5318758dcfc72acb698938fc17c407a24cb5 (diff)
downloadprofani-tty-a720ef262774e51066f5885c76deebde83dec74e.tar.gz
Removed strcpy calls
Diffstat (limited to 'src/ui/inputwin.c')
-rw-r--r--src/ui/inputwin.c2
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();