summaryrefslogtreecommitdiff
path: root/contrib/vim/syntax/gitcommit.vim
diff options
context:
space:
mode:
authorLibravatar Christian Couder <chriscool@tuxfamily.org>2006-09-11 07:04:50 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-09-10 22:48:11 -0700
commit0f503d77ac9032fbfbd5f3bacafeccbcf408b31f (patch)
tree7428786361776611ed66c194181f95ea0e41967b /contrib/vim/syntax/gitcommit.vim
parentMove add_to_string to "quote.c" and make it extern. (diff)
downloadtgif-0f503d77ac9032fbfbd5f3bacafeccbcf408b31f.tar.xz
Fix a memory leak in "connect.c" and die if command too long.
Use "add_to_string" instead of "sq_quote" and "snprintf", so that there is no memory allocation and no memory leak. Also check if the command is too long to fit into the buffer and die if this is the case, instead of truncating it to the buffer size. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'contrib/vim/syntax/gitcommit.vim')
0 files changed, 0 insertions, 0 deletions