mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-20 05:37:57 +00:00
Fix issues arising from new strlcpy.c
This commit is contained in:
parent
d77e5b7c62
commit
cd35c5e2ae
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@
|
|||||||
*.user
|
*.user
|
||||||
*.ncb
|
*.ncb
|
||||||
*.o
|
*.o
|
||||||
|
*.a
|
||||||
*.suo
|
*.suo
|
||||||
.*.sw?
|
.*.sw?
|
||||||
configure
|
configure
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#ifndef HAVE_STRLCPY
|
#ifndef HAVE_STRLCPY
|
||||||
|
|
||||||
#include <stdlib.h> /* for size_t */
|
#include <stdlib.h> /* for size_t */
|
||||||
|
#include <string.h> /* for strlen, memcpy */
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
strlcpy(char *dst, const char *src, size_t size) {
|
strlcpy(char *dst, const char *src, size_t size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user