1
0
forked from aniani/vim

updated for version 7.0109

This commit is contained in:
Bram Moolenaar
2005-07-18 21:58:11 +00:00
parent bbebc85750
commit ce0842a6ee
30 changed files with 178 additions and 134 deletions

View File

@@ -1476,8 +1476,7 @@ dlg_destroy(GtkWidget *dlg)
const char *text;
text = gtk_entry_get_text(GTK_ENTRY(dialog_textentry));
STRNCPY(dialog_textfield, text, IOSIZE);
dialog_textfield[IOSIZE - 1] = NUL;
vim_strncpy(dialog_textfield, (char_u *)text, IOSIZE - 1);
}
/* Destroy the dialog, will break the waiting loop. */
@@ -2340,8 +2339,7 @@ gui_mch_dialog(int type, /* type of dialog */
text = (char_u *)gtk_entry_get_text(GTK_ENTRY(entry));
text = CONVERT_FROM_UTF8(text);
STRNCPY(textfield, text, IOSIZE);
textfield[IOSIZE - 1] = NUL;
vim_strncpy(textfield, text, IOSIZE - 1);
CONVERT_FROM_UTF8_FREE(text);
}