aboutsummaryrefslogtreecommitdiffstats
path: root/main/utils.c
diff options
context:
space:
mode:
authordbailey <dbailey@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-18 15:59:22 +0000
committerdbailey <dbailey@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-18 15:59:22 +0000
commit086dbcf9b53eb39d59eed97f6dbc6b83794cec7e (patch)
tree02f1b98a2ee4fe8ce3dba3e8d625feffcec734f9 /main/utils.c
parent6103d1d877793c56118b4c1c0a14e55120e5c710 (diff)
Need to take into account the \0 terminator of the old string to determine the amount available.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@176945 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/utils.c')
-rw-r--r--main/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c
index 3d3da881c..d117174f6 100644
--- a/main/utils.c
+++ b/main/utils.c
@@ -1265,7 +1265,7 @@ void __ast_string_field_index_build_va(struct ast_string_field_mgr *mgr,
*/
if (fields[index][0] != '0') {
target = (char *) fields[index];
- available = strlen(fields[index]);
+ available = strlen(fields[index]) + 1;
} else {
target = mgr->pool->base + mgr->used;
available = mgr->space;