[Asterisk-cvs] asterisk/channels iax2-parser.c,1.55,1.56

kpfleming kpfleming
Mon Oct 31 18:36:27 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv6410/channels

Modified Files:
	iax2-parser.c 
Log Message:
revert strncpy->ast_copy_string changes where the semantics are subtly different


Index: iax2-parser.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/iax2-parser.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- iax2-parser.c	27 Oct 2005 02:42:05 -0000	1.55
+++ iax2-parser.c	31 Oct 2005 23:28:30 -0000	1.56
@@ -77,7 +77,7 @@
 	maxlen--;
 	if (maxlen > len)
 		maxlen = len;
-	ast_copy_string(output, value, maxlen);
+	strncpy(output, value, maxlen);
 	output[maxlen] = '\0';
 }
 
@@ -92,7 +92,7 @@
 	if (maxlen > len)
 		maxlen = len;
 
-	ast_copy_string(output, value, maxlen);
+	strncpy(output, value, maxlen);
 	output[maxlen] = '\0';
 	
 	ast_codec_pref_convert(&pref, output, total_len, 0);




More information about the svn-commits mailing list