Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
18
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
dd5def6c
Commit
dd5def6c
authored
5 years ago
by
dmitriy.gerasimov
Browse files
Options
Downloads
Plain Diff
Merge branch 'bugs-2706' into 'master'
wepoll issues See merge request
libdap!26
parents
dee04404
9053a059
No related branches found
No related tags found
1 merge request
!24
Support 3689
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/dap_strfuncs.h
+4
-1
4 additions, 1 deletion
include/dap_strfuncs.h
src/dap_strfuncs.c
+1
-1
1 addition, 1 deletion
src/dap_strfuncs.c
with
5 additions
and
2 deletions
include/dap_strfuncs.h
+
4
−
1
View file @
dd5def6c
...
...
@@ -74,7 +74,10 @@ char* dap_strdown(const char *a_str, ssize_t a_len);
char
*
dap_strreverse
(
char
*
a_string
);
#ifdef _WIN32
char
*
strndup
(
char
*
str
,
unsigned
long
len
);
#ifdef HAVE_STRNDUP
#define strndup(s, l) _strndup(s, l)
#endif
char
*
_strndup
(
char
*
str
,
unsigned
long
len
);
#endif
#define DAP_USEC_PER_SEC 1000000
...
...
This diff is collapsed.
Click to expand it.
src/dap_strfuncs.c
+
1
−
1
View file @
dd5def6c
...
...
@@ -690,7 +690,7 @@ char *strptime( char *buff, const char *fmt, struct tm *tm ) {
return
buff
+
len
;
}
char
*
strndup
(
char
*
str
,
unsigned
long
len
)
{
char
*
_
strndup
(
char
*
str
,
unsigned
long
len
)
{
char
*
buf
=
(
char
*
)
memchr
(
str
,
'\0'
,
len
);
if
(
buf
)
len
=
buf
-
str
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment