From: Eric Bollengier Date: Thu, 23 Jul 2020 08:51:41 +0000 (+0200) Subject: Fix org#2551 About the 'show catalog' command that is truncating the db_driver X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9970a429298effedbead8c802819a7939f898c9;p=thirdparty%2Fbacula.git Fix org#2551 About the 'show catalog' command that is truncating the db_driver Reported by Wanderlei Huttel --- diff --git a/bacula/src/dird/dird.c b/bacula/src/dird/dird.c index e2af2f1d9..3edbed8d9 100644 --- a/bacula/src/dird/dird.c +++ b/bacula/src/dird/dird.c @@ -1265,7 +1265,7 @@ static bool check_catalog(cat_op mode) /* To copy dbdriver field into "CAT" catalog resource class (local) * from dbdriver in "BDB" catalog DB Interface class (global) */ - bstrncpy(catalog->db_driver, BDB_db_driver, db_driver_len); + bstrncpy(catalog->db_driver, BDB_db_driver, db_driver_len + 1); } }