[asterisk-commits] tilghman: trunk r114152 - /trunk/cdr/cdr_pgsql.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 15 15:51:08 CDT 2008


Author: tilghman
Date: Tue Apr 15 15:51:08 2008
New Revision: 114152

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114152
Log:
Oops, buffer wasn't long enough for query

Modified:
    trunk/cdr/cdr_pgsql.c

Modified: trunk/cdr/cdr_pgsql.c
URL: http://svn.digium.com/view/asterisk/trunk/cdr/cdr_pgsql.c?view=diff&rev=114152&r1=114151&r2=114152
==============================================================================
--- trunk/cdr/cdr_pgsql.c (original)
+++ trunk/cdr/cdr_pgsql.c Tue Apr 15 15:51:08 2008
@@ -455,7 +455,7 @@
 
 	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");




More information about the asterisk-commits mailing list