Use my_snprintf instead of snprintf

parent 6e6d942c
...@@ -269,7 +269,7 @@ static void create_defaults_file(void) ...@@ -269,7 +269,7 @@ static void create_defaults_file(void)
Create the option that should be added to Create the option that should be added to
tools in order to use this file tools in order to use this file
*/ */
snprintf(defaults_file_option, sizeof(defaults_file_option), my_snprintf(defaults_file_option, sizeof(defaults_file_option),
"--defaults-file=%s", defaults_file_path); "--defaults-file=%s", defaults_file_path);
DBUG_PRINT("info", ("defaults_file_option: %s", defaults_file_option)); DBUG_PRINT("info", ("defaults_file_option: %s", defaults_file_option));
...@@ -403,7 +403,7 @@ static void find_tool(char *tool_path, const char *tool_name) ...@@ -403,7 +403,7 @@ static void find_tool(char *tool_path, const char *tool_name)
/* 2. my_progname contains relative path, prepend wd */ /* 2. my_progname contains relative path, prepend wd */
char buf[FN_REFLEN]; char buf[FN_REFLEN];
my_getwd(buf, FN_REFLEN, MYF(0)); my_getwd(buf, FN_REFLEN, MYF(0));
snprintf(path, FN_REFLEN, "%s%s", buf, my_progname); my_snprintf(path, FN_REFLEN, "%s%s", buf, my_progname);
} }
else else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment