From 369ccdef5e6094b7712705e5209ad2b2b147c6d2 Mon Sep 17 00:00:00 2001
From: Tilghman Lesher <tilghman@meg.abyt.es>
Date: Tue, 15 Apr 2008 20:51:08 +0000
Subject: [PATCH] Oops, buffer wasn't long enough for query

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 cdr/cdr_pgsql.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c
index 0bdb19f03d..ef47bb7793 100644
--- a/cdr/cdr_pgsql.c
+++ b/cdr/cdr_pgsql.c
@@ -455,7 +455,7 @@ static int config_module(int reload)
 
 	conn = PQsetdbLogin(pghostname, pgdbport, NULL, NULL, pgdbname, pgdbuser, pgpassword);
 	if (PQstatus(conn) != CONNECTION_BAD) {
-		char sqlcmd[256];
+		char sqlcmd[512];
 		char *fname, *ftype, *flen, *fnotnull, *fdef;
 		int i, rows;
 		ast_debug(1, "Successfully connected to PostgreSQL database.\n");
-- 
GitLab