From 8533206280e9423a91d51ee40e5b4569620a2837 Mon Sep 17 00:00:00 2001 From: Jim Winstead Date: Wed, 20 May 2009 12:58:01 -0700 Subject: [PATCH] Fix warning in use of strlen(). --- client/mysqlimport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);