diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-16 00:49:39 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-16 00:49:39 +0000 |
commit | 9b52b60ef240448f55733b3572d47b58a48c6135 (patch) | |
tree | 7384c544f474e5200c8dfc034145cae0803f0ce0 /apps/app_cut.c | |
parent | dddee33fc2d7d081a4c148e1eb16ba3d07c8bb65 (diff) |
First field is truncated
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7497 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_cut.c')
-rw-r--r-- | apps/app_cut.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_cut.c b/apps/app_cut.c index b6b457ab7..46f934b89 100644 --- a/apps/app_cut.c +++ b/apps/app_cut.c @@ -145,8 +145,9 @@ static int sort_internal(struct ast_channel *chan, char *data, char *buffer, siz int blen = strlen(buffer); if (element_count++) { strncat(buffer + blen, ",", buflen - blen - 1); + blen++; } - strncat(buffer + blen + 1, sortable_keys[count2].key, buflen - blen - 2); + strncat(buffer + blen, sortable_keys[count2].key, buflen - blen - 1); } return 0; |