Oops, buffer wasn't long enough for query
[asterisk/asterisk.git] / cdr / cdr_pgsql.c
index 0bdb19f..ef47bb7 100644 (file)
@@ -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");