diff options
Diffstat (limited to 'src/gui_motif.c')
-rw-r--r-- | src/gui_motif.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui_motif.c b/src/gui_motif.c index 408b588a6..14f65caeb 100644 --- a/src/gui_motif.c +++ b/src/gui_motif.c @@ -2620,10 +2620,7 @@ gui_mch_dialog(type, title, message, button_names, dfltbutton, textfield) if (p == NULL || dialogStatus < 0) *textfield = NUL; else - { - STRNCPY(textfield, p, IOSIZE); - textfield[IOSIZE - 1] = NUL; - } + vim_strncpy(textfield, p, IOSIZE - 1); } suppress_dialog_mnemonics(dialogform); |