From: Tilghman Lesher Date: Mon, 3 Nov 2008 21:01:30 +0000 (+0000) Subject: Should have passed the string pointer, not the ast_str structure. X-Git-Tag: 1.6.2.0-beta1~962 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9b2491e40ed391e48e6389fa82d947a438475dd;p=thirdparty%2Fasterisk.git Should have passed the string pointer, not the ast_str structure. (closes issue #13830) Reported by: Marquis git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@154023 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c index c2df452ea2..41f5d7bc0b 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) {