diff src/gui_motif.c @ 418:84825cc6f049

updated for version 7.0109
author vimboss
date Mon, 18 Jul 2005 21:47:53 +0000
parents da182deebec7
children d2c169a725c8
line wrap: on
line diff
--- a/src/gui_motif.c
+++ b/src/gui_motif.c
@@ -2620,10 +2620,7 @@ gui_mch_dialog(type, title, message, but
 	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);