summaryrefslogtreecommitdiff
path: root/src/gui_motif.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-07-18 21:47:53 +0000
committerBram Moolenaar <Bram@vim.org>2005-07-18 21:47:53 +0000
commitbbebc857507f24c82cd5bb2f80305b74390b4611 (patch)
tree4c1a949017d7975cb3e61b246783369bb529d53d /src/gui_motif.c
parentfe3ca8ddd9b85240387b6fa7934af3317e25b731 (diff)
downloadvim-git-bbebc857507f24c82cd5bb2f80305b74390b4611.tar.gz
updated for version 7.0109
Diffstat (limited to 'src/gui_motif.c')
-rw-r--r--src/gui_motif.c5
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);