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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
fafcd24e
Commit
fafcd24e
authored
Sep 10, 2024
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler warning from strncpy in mysql_plugin.c
parent
3ae4ecbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
client/mysql_plugin.c
client/mysql_plugin.c
+4
-4
No files found.
client/mysql_plugin.c
View file @
fafcd24e
...
...
@@ -738,8 +738,8 @@ static int check_options(int argc, char **argv, char *operation)
{
int
i
=
0
;
/* loop counter */
int
num_found
=
0
;
/* number of options found (shortcut loop) */
char
config_file
[
FN_REFLEN
];
/* configuration file name */
char
plugin_name
[
FN_REFLEN
];
/* plugin name */
char
config_file
[
FN_REFLEN
+
1
];
/* configuration file name */
char
plugin_name
[
FN_REFLEN
+
1
];
/* plugin name */
/* Form prefix strings for the options. */
const
char
*
basedir_prefix
=
"--basedir="
;
...
...
@@ -787,8 +787,8 @@ static int check_options(int argc, char **argv, char *operation)
/* read the plugin config file and check for match against argument */
else
{
if
(
safe_strcpy_truncated
(
plugin_name
,
sizeof
plugin_name
,
argv
[
i
])
||
safe_strcpy_truncated
(
config_file
,
sizeof
config_file
,
argv
[
i
])
||
if
(
safe_strcpy_truncated
(
plugin_name
,
sizeof
(
plugin_name
)
-
1
,
argv
[
i
])
||
safe_strcpy_truncated
(
config_file
,
sizeof
(
config_file
)
-
1
,
argv
[
i
])
||
safe_strcat
(
config_file
,
sizeof
(
config_file
),
".ini"
))
{
fprintf
(
stderr
,
"ERROR: argument is too long.
\n
"
);
...
...
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