diff options
Diffstat (limited to 'mg_db_gd_mysql.c')
-rw-r--r-- | mg_db_gd_mysql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mg_db_gd_mysql.c b/mg_db_gd_mysql.c index 5c4dc46..1bc1c5a 100644 --- a/mg_db_gd_mysql.c +++ b/mg_db_gd_mysql.c @@ -198,7 +198,7 @@ mgDbServerMySQL::mgDbServerMySQL() the_setup.DbDatadir,errno); abort(); } - asprintf(&mysql_embedded_args[1],"--datadir=%s",the_setup.DbDatadir); + msprintf(&mysql_embedded_args[1],"--datadir=%s",the_setup.DbDatadir); mgDebug(1,"calling mysql_server_init for embedded in %s",the_setup.DbDatadir); } else @@ -633,7 +633,7 @@ bool mgDbGd::FieldExists(string table, string field) { char *b; - asprintf(&b,"DESCRIBE %s %s",table.c_str(),field.c_str()); + msprintf(&b,"DESCRIBE %s %s",table.c_str(),field.c_str()); mgQuery q(m_db,b); free(b); if (q.Next()) |