input_tab(): Added memset() to matchBuf to ensure sanity (Rocco, Adam).


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@484 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
diff --git a/files.c b/files.c
index 6b5a9d2..8eef1e2 100644
--- a/files.c
+++ b/files.c
@@ -883,9 +883,9 @@
 	/* Make a local copy of the string -- up to the position of the
 	   cursor */
 	matchBuf = (char *) nmalloc((strlen(buf) + 2) * sizeof(char));
+	memset(matchBuf, '\0', (strlen(buf) + 2));
 
 	strncpy(matchBuf, buf, place);
-	matchBuf[place] = 0;
 	tmp = matchBuf;
 
 	/* skip any leading white space */