[asterisk-commits] branch 1.2 - r7497 /branches/1.2/apps/app_cut.c

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


Author: tilghman
Date: Thu Dec 15 18:49:39 2005
New Revision: 7497

URL: http://svn.digium.com/view/asterisk?rev=7497&view=rev
Log:
First field is truncated

Modified:
    branches/1.2/apps/app_cut.c

Modified: branches/1.2/apps/app_cut.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_cut.c?rev=7497&r1=7496&r2=7497&view=diff
==============================================================================
--- branches/1.2/apps/app_cut.c (original)
+++ branches/1.2/apps/app_cut.c Thu Dec 15 18:49:39 2005
@@ -145,8 +145,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