Skip to content
Snippets Groups Projects
Commit dd5def6c authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

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!24Support 3689
......@@ -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
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment