aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_odbc.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-03 21:01:30 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-03 21:01:30 +0000
commitdc7f2ff761f72376da2abf2d66c94109fc7965dd (patch)
tree5664a077729de18d7c09d5d5e27c8a671b97a620 /funcs/func_odbc.c
parent1965ab5fb1c171e1a1d8ac87deb56811d6101466 (diff)
Should have passed the string pointer, not the ast_str structure.
(closes issue #13830) Reported by: Marquis git-svn-id: http://svn.digium.com/svn/asterisk/trunk@154023 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_odbc.c')
-rw-r--r--funcs/func_odbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index c2df452ea..41f5d7bc0 100644
--- a/funcs/func_odbc.c
+++ b/funcs/func_odbc.c
@@ -300,7 +300,7 @@ static int acf_odbc_write(struct ast_channel *chan, const char *cmd, char *s, co
if (!ast_strlen_zero(query->writehandle[dsn])) {
obj = ast_odbc_request_obj(query->writehandle[dsn], 0);
if (obj)
- stmt = ast_odbc_direct_execute(obj, generic_execute, buf);
+ stmt = ast_odbc_direct_execute(obj, generic_execute, buf->str);
}
if (stmt) {
status = "SUCCESS";
@@ -316,7 +316,7 @@ static int acf_odbc_write(struct ast_channel *chan, const char *cmd, char *s, co
if (!ast_strlen_zero(query->writehandle[dsn])) {
obj = ast_odbc_request_obj(query->writehandle[dsn], 0);
if (obj) {
- stmt = ast_odbc_direct_execute(obj, generic_execute, insertbuf);
+ stmt = ast_odbc_direct_execute(obj, generic_execute, insertbuf->str);
}
}
if (stmt) {