From: Kern Sibbald Date: Sat, 10 Apr 2010 10:19:22 +0000 (+0200) Subject: Revert "Lets not use PostgreSQL macros for sizes." X-Git-Tag: Release-5.0.2~42 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0a9808eaa8b7db67de95be65d356ee4ea0a55583;p=bacula%2Fbacula Revert "Lets not use PostgreSQL macros for sizes." This reverts commit aa0dfc0c7010c096283f938a9dfd95b1d04ff7bf. --- diff --git a/bacula/src/cats/ingres.c b/bacula/src/cats/ingres.c index e984b799af..f09c30cea6 100755 --- a/bacula/src/cats/ingres.c +++ b/bacula/src/cats/ingres.c @@ -617,8 +617,8 @@ int my_ingres_currval(B_DB *mdb, const char *table_name) * As we name all sequences as _seq this is easy. */ - char sequence[64]; - char query[256]; + char sequence[NAMEDATALEN-1]; + char query[NAMEDATALEN+50]; INGresult *result; int id = 0;