summary refs log tree commit diff
path: root/compat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-31 23:51:23 -0400
committerJune McEnroe <june@causal.agency>2020-07-31 23:51:23 -0400
commit8a91c64edf551c3c05483ec3f5c87e8dc27a3cc5 (patch)
treecee269932d1d455b2086db9016bae51a196e3867 /compat.h
parentUse RAND_bytes instead of arc4random_buf (diff)
downloadpounce-8a91c64edf551c3c05483ec3f5c87e8dc27a3cc5.tar.gz
pounce-8a91c64edf551c3c05483ec3f5c87e8dc27a3cc5.zip
Use snprintf instead of strlcpy
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/compat.h b/compat.h
index 63109a0..4559434 100644
--- a/compat.h
+++ b/compat.h
@@ -30,8 +30,7 @@
 
 // libcrypto defines these functions if libc doesn't.
 void explicit_bzero(void *b, size_t len);
-#ifndef strlcpy
-size_t strlcpy(char *restrict dst, const char *restrict src, size_t dstsize);
+#ifndef strlcat
 size_t strlcat(char *restrict dst, const char *restrict src, size_t dstsize);
 #endif