Use ast_strdupa() instead of strdup(), thanks to sergee
authorPaul Cadach <paul@odt.east.telecom.kz>
Wed, 27 Sep 2006 12:32:06 +0000 (12:32 +0000)
committerPaul Cadach <paul@odt.east.telecom.kz>
Wed, 27 Sep 2006 12:32:06 +0000 (12:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43763 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_h323.c

index 607de74..0fad86f 100644 (file)
@@ -1258,7 +1258,7 @@ static int update_common_options(struct ast_variable *v, struct call_options *op
        } else if (!strcasecmp(v->name, "disallow")) {
                ast_parse_allow_disallow(&options->prefs, &options->capability, v->value, 0);
        } else if (!strcasecmp(v->name, "dtmfmode")) {
-               val = strdupa(v->value);
+               val = ast_strdupa(v->value);
                if ((opt = strchr(val, ':')) != (char *)NULL) {
                        *opt++ = '\0';
                        tmp = atoi(opt);