mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Fix warning in use of strlen().
This commit is contained in:
parent
16aeb5ad3d
commit
8533206280
1 changed files with 2 additions and 1 deletions
|
@ -339,7 +339,8 @@ static int write_to_table(char *filename, MYSQL *mysql)
|
|||
fprintf(stdout, "Loading data from SERVER file: %s into %s\n",
|
||||
hard_path, tablename);
|
||||
}
|
||||
mysql_real_escape_string(mysql, escaped_name, hard_path, strlen(hard_path));
|
||||
mysql_real_escape_string(mysql, escaped_name, hard_path,
|
||||
(unsigned long) strlen(hard_path));
|
||||
sprintf(sql_statement, "LOAD DATA %s %s INFILE '%s'",
|
||||
opt_low_priority ? "LOW_PRIORITY" : "",
|
||||
opt_local_file ? "LOCAL" : "", escaped_name);
|
||||
|
|
Loading…
Reference in a new issue