X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fcats%2Fmysql.c;h=c25d18c7830849fca9ac840d297dc515d2a090ad;hb=fb71554fa28e81b6125c2063e028976df18334f2;hp=555bbf9cc02ec6aeea85389433468938b474a4ef;hpb=b0abc65e10d2bdf4eb7970202430b46464809ca7;p=bacula%2Fbacula diff --git a/bacula/src/cats/mysql.c b/bacula/src/cats/mysql.c index 555bbf9cc0..c25d18c783 100644 --- a/bacula/src/cats/mysql.c +++ b/bacula/src/cats/mysql.c @@ -6,7 +6,7 @@ The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. This program is Free Software; you can redistribute it and/or - modify it under the terms of version two of the GNU General Public + modify it under the terms of version three of the GNU Affero General Public License as published by the Free Software Foundation and included in the file LICENSE. @@ -15,7 +15,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License + You should have received a copy of the GNU Affero General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. @@ -322,7 +322,7 @@ int db_next_index(JCR *jcr, B_DB *mdb, char *table, char *index) * Memory is stored in B_DB struct, no need to free it */ char * -db_escape_object(JCR *jcr, B_DB *db, char *old, int len) +db_escape_object(JCR *jcr, B_DB *mdb, char *old, int len) { mdb->esc_obj = check_pool_memory_size(mdb->esc_obj, len*2+1); mysql_real_escape_string(mdb->db, mdb->esc_obj, old, len);