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
c4cb7a9b
Commit
c4cb7a9b
authored
Jun 01, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small portability fix for strnlen
parent
36652d00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ndb/src/common/util/ConfigValues.cpp
ndb/src/common/util/ConfigValues.cpp
+1
-1
No files found.
ndb/src/common/util/ConfigValues.cpp
View file @
c4cb7a9b
...
@@ -673,7 +673,7 @@ ConfigValuesFactory::unpack(const void * _src, Uint32 len){
...
@@ -673,7 +673,7 @@ ConfigValuesFactory::unpack(const void * _src, Uint32 len){
break
;
break
;
case
ConfigValues
:
:
StringType
:
{
case
ConfigValues
:
:
StringType
:
{
Uint32
s_len
=
ntohl
(
*
(
const
Uint32
*
)
src
);
src
+=
4
;
Uint32
s_len
=
ntohl
(
*
(
const
Uint32
*
)
src
);
src
+=
4
;
size_t
s_len2
=
str
nlen
((
const
char
*
)
src
,
s_len
);
size_t
s_len2
=
str
len
((
const
char
*
)
src
);
if
(
s_len2
+
1
!=
s_len
){
if
(
s_len2
+
1
!=
s_len
){
DEBUG
abort
();
DEBUG
abort
();
return
false
;
return
false
;
...
...
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