]> git.ipfire.org Git - thirdparty/asterisk.git/commit
func_odbc: Fix fixed size buffers fix (r414968).
authorWalter Doekes <walter+asterisk@wjd.nu>
Tue, 3 Jun 2014 07:34:23 +0000 (07:34 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Tue, 3 Jun 2014 07:34:23 +0000 (07:34 +0000)
commitadd1f1077d8af76b88b2dda4be45c048ed86347c
tree7b79867682aedc3a00163d6cdb1ecce98e81947f
parent13d26b19a68a43d3e2bf48353dbf1122de199e6b
func_odbc: Fix fixed size buffers fix (r414968).

The change that removed the fixed size buffers in odbc-related code --
removing arbitrary column width limits -- was incomplete. This change
adds: no segfault on writesql without insertsql and return value checks
after strdup.

While I was in the vicinity I cleaned up the linefeeds in the odbc
function descriptions, moved some code for clarity, removed some blobs
and noted (but didn't fix) that the 'odbc write ... exec' CLI command
doesn't behave as the dialplan equivalent when insertsql= is used.

ASTERISK-23582 #close
~ASTERISK-23582 #comment test
-ASTERISK-23582 #comment test2
X-ASTERISK-23582 #comment test3
Review: https://reviewboard.asterisk.org/r/3579/
........

Merged revisions 414997 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 414998 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@414999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_odbc.c