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
b6384f46
Commit
b6384f46
authored
Jul 07, 2006
by
mats@romeo.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the prototype for my_strndup() to compile on Windows.
parent
c18b7d19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mysys/my_malloc.c
mysys/my_malloc.c
+1
-1
server-tools/instance-manager/parse.h
server-tools/instance-manager/parse.h
+1
-1
No files found.
mysys/my_malloc.c
View file @
b6384f46
...
...
@@ -83,7 +83,7 @@ char *my_strdup(const char *from, myf my_flags)
}
char
*
my_strndup
(
const
byte
*
from
,
uint
length
,
myf
my_flags
)
char
*
my_strndup
(
const
char
*
from
,
uint
length
,
myf
my_flags
)
{
gptr
ptr
;
if
((
ptr
=
my_malloc
(
length
+
1
,
my_flags
))
!=
0
)
...
...
server-tools/instance-manager/parse.h
View file @
b6384f46
...
...
@@ -69,7 +69,7 @@ private:
inline
char
*
Named_value
::
alloc_str
(
const
LEX_STRING
*
str
)
{
return
my_strndup
(
(
const
byte
*
)
str
->
str
,
str
->
length
,
MYF
(
0
));
return
my_strndup
(
str
->
str
,
str
->
length
,
MYF
(
0
));
}
inline
char
*
Named_value
::
alloc_str
(
const
char
*
str
)
...
...
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