]> 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:31:37 +0000 (07:31 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Tue, 3 Jun 2014 07:31:37 +0000 (07:31 +0000)
commit61759029987409106a61027e1edee9203540d77a
tree7ae2c1ce4da70a67d4646b91827eb9a9aeba2a3b
parentc1be1f43cb3779a23d207fa22889b2b0d1866437
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
Review: https://reviewboard.asterisk.org/r/3579/

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