]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/mysql.c
Fix #1624 about segfault in dvd driver when calling rewind(NULL)
[bacula/bacula] / bacula / src / cats / mysql.c
index 555bbf9cc02ec6aeea85389433468938b474a4ef..c25d18c7830849fca9ac840d297dc515d2a090ad 100644 (file)
@@ -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);