Index: /issm/trunk/src/c/io/Matlab/OptionParse.cpp
===================================================================
--- /issm/trunk/src/c/io/Matlab/OptionParse.cpp	(revision 9322)
+++ /issm/trunk/src/c/io/Matlab/OptionParse.cpp	(revision 9323)
@@ -106,5 +106,5 @@
 		/*loop through and process each field for the element  */
 		for (i=0; i<mxGetNumberOfFields(prhs[0]); i++) {
-			sprintf_s(namei,161,"%s.%s",name,mxGetFieldNameByNumber(prhs[0],i));
+			snprintf(namei,161,"%s.%s",name,mxGetFieldNameByNumber(prhs[0],i));
 			structi=mxGetFieldByNumber(prhs[0],sindex,i);
 
