Skip to content

Commit

Permalink
http_server: use lsquic_strndup() on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri Tikhonov committed Oct 21, 2020
1 parent c0b26ea commit 25332c1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions bin/http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1661,23 +1661,6 @@ interop_server_hset_prepare_decode (void *hset_p, struct lsxpack_header *xhdr,
}


#ifdef WIN32
char *
strndup (const char *s, size_t n)
{
char *copy;

copy = malloc(n + 1);
if (!copy)
return NULL;

memcpy(copy, s, n);
copy[n] = '\0';
return copy;
}
#endif


static int
interop_server_hset_add_header (void *hset_p, struct lsxpack_header *xhdr)
{
Expand Down

0 comments on commit 25332c1

Please sign in to comment.