mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
http_server: use lsquic_strndup() on Windows
This commit is contained in:
parent
c0b26eab7c
commit
25332c1253
1 changed files with 0 additions and 17 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue