[asterisk-commits] trunk - r7498 /trunk/funcs/func_cut.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Dec 15 18:55:40 CST 2005


Author: tilghman
Date: Thu Dec 15 18:55:39 2005
New Revision: 7498

URL: http://svn.digium.com/view/asterisk?rev=7498&view=rev
Log:
First field was truncated.
(Don't kill me; this attempted merge didn't work because the paths changed.)

Modified:
    trunk/funcs/func_cut.c

Modified: trunk/funcs/func_cut.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_cut.c?rev=7498&r1=7497&r2=7498&view=diff
==============================================================================
--- trunk/funcs/func_cut.c (original)
+++ trunk/funcs/func_cut.c Thu Dec 15 18:55:39 2005
@@ -120,8 +120,9 @@
 		int blen = strlen(buffer);
 		if (element_count++) {
 			strncat(buffer + blen, ",", buflen - blen - 1);
-		}
-		strncat(buffer + blen + 1, sortable_keys[count2].key, buflen - blen - 2);
+			blen++;
+		}
+		strncat(buffer + blen, sortable_keys[count2].key, buflen - blen - 1);
 	}
 
 	return 0;



More information about the asterisk-commits mailing list