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
8f4582db
Commit
8f4582db
authored
Jun 26, 2006
by
anozdrin@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/alik/MySQL/devel/5.0-tree
into mysql.com:/home/alik/MySQL/devel/5.0-rt
parents
d5ff4f68
d74a0457
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
mysys/mf_dirname.c
mysys/mf_dirname.c
+3
-1
server-tools/instance-manager/instance_options.cc
server-tools/instance-manager/instance_options.cc
+7
-2
No files found.
mysys/mf_dirname.c
View file @
8f4582db
...
@@ -72,7 +72,9 @@ uint dirname_part(my_string to, const char *name)
...
@@ -72,7 +72,9 @@ uint dirname_part(my_string to, const char *name)
SYNPOSIS
SYNPOSIS
convert_dirname()
convert_dirname()
to Store result here
to Store result here. Must be at least of size
min(FN_REFLEN, strlen(from) + 1) to make room
for adding FN_LIBCHAR at the end.
from Original filename
from Original filename
from_end Pointer at end of filename (normally end \0)
from_end Pointer at end of filename (normally end \0)
...
...
server-tools/instance-manager/instance_options.cc
View file @
8f4582db
...
@@ -391,8 +391,13 @@ int Instance_options::complete_initialization(const char *default_path,
...
@@ -391,8 +391,13 @@ int Instance_options::complete_initialization(const char *default_path,
const
char
*
tmp
;
const
char
*
tmp
;
char
*
end
;
char
*
end
;
if
(
!
mysqld_path
&&
!
(
mysqld_path
=
strdup_root
(
&
alloc
,
default_path
)))
if
(
!
mysqld_path
)
goto
err
;
{
// Need one extra byte, as convert_dirname() adds a slash at the end.
if
(
!
(
mysqld_path
=
alloc_root
(
&
alloc
,
strlen
(
default_path
)
+
2
)))
goto
err
;
strcpy
((
char
*
)
mysqld_path
,
default_path
);
}
// it's safe to cast this to char* since this is a buffer we are allocating
// it's safe to cast this to char* since this is a buffer we are allocating
end
=
convert_dirname
((
char
*
)
mysqld_path
,
mysqld_path
,
NullS
);
end
=
convert_dirname
((
char
*
)
mysqld_path
,
mysqld_path
,
NullS
);
...
...
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