nuke another use of the ast_str internals.
authorMichiel van Baak <michiel@vanbaak.info>
Sat, 13 Dec 2008 13:26:13 +0000 (13:26 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Sat, 13 Dec 2008 13:26:13 +0000 (13:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164028 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/snmp/agent.c

index 225fb63..9633aa1 100644 (file)
@@ -483,8 +483,8 @@ static u_char *ast_var_channels_table(struct variable *vp, oid *name, size_t *le
                break;
        case ASTCHANVARIABLES:
                if (pbx_builtin_serialize_variables(chan, &out)) {
                break;
        case ASTCHANVARIABLES:
                if (pbx_builtin_serialize_variables(chan, &out)) {
-                       *var_len = strlen(out->str);
-                       ret = (u_char *)out->str;
+                       *var_len = strlen(ast_str_buffer(out));
+                       ret = (u_char *)ast_str_buffer(out);
                }
                break;
        case ASTCHANFLAGS:
                }
                break;
        case ASTCHANFLAGS: