aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorautomerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-16 00:11:13 +0000
committerautomerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-16 00:11:13 +0000
commitcfe4fe8062130ce9dfe770c95e4d74a454ccb8d0 (patch)
tree05f8f1a62d73c56abcc61366a2756a980f9f1c72 /apps
parent12a15639753b32d7988e4aeb0fcf155576f0c33b (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@51029 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_groupcount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_groupcount.c b/apps/app_groupcount.c
index 07c07835c..e44451370 100644
--- a/apps/app_groupcount.c
+++ b/apps/app_groupcount.c
@@ -70,7 +70,8 @@ static int group_count_exec(struct ast_channel *chan, void *data)
if (ast_strlen_zero(group)) {
grp = pbx_builtin_getvar_helper(chan, category);
- strncpy(group, grp, sizeof(group) - 1);
+ if (!ast_strlen_zero(grp))
+ ast_copy_string(group, grp, sizeof(group));
}
count = ast_app_group_get_count(group, category);