Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
453b6180
Commit
453b6180
authored
Apr 18, 2007
by
msvensson@pilot.blaudden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use my_snprintf instead of snprintf
parent
6e6d942c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
client/mysql_upgrade.c
client/mysql_upgrade.c
+3
-3
No files found.
client/mysql_upgrade.c
View file @
453b6180
...
@@ -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
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment