summaryrefslogtreecommitdiff
path: root/client/mysqlimport.c
diff options
context:
space:
mode:
authorJim Winstead <jimw@mysql.com>2009-05-20 12:58:01 -0700
committerJim Winstead <jimw@mysql.com>2009-05-20 12:58:01 -0700
commit50e7c391122e7d89b4fca0399375a406f36df9ee (patch)
tree8e4ba9f1d4f8f51f273ea812681d7adf0f5f360c /client/mysqlimport.c
parent1c9e45c3c4904e1e81132f7c87e3abbf7d50c506 (diff)
downloadmariadb-git-50e7c391122e7d89b4fca0399375a406f36df9ee.tar.gz
Fix warning in use of strlen().
Diffstat (limited to 'client/mysqlimport.c')
-rw-r--r--client/mysqlimport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c
index 5a8fabd4da7..38a6e5fa3e6 100644
--- a/client/mysqlimport.c
+++ b/client/mysqlimport.c
@@ -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);