mirror of
git://git.suckless.org/ubase
synced 2024-12-24 15:42:36 +00:00
Guard against strlcpy()/strlcat() being implemented as macros
This commit is contained in:
parent
1de3e6c679
commit
a8e1ea1398
2
util.h
2
util.h
@ -14,6 +14,8 @@ void eprintf(const char *, ...);
|
||||
long estrtol(const char *, int);
|
||||
void putword(const char *);
|
||||
void recurse(const char *, void (*)(const char *));
|
||||
#undef strlcat
|
||||
size_t strlcat(char *, const char *, size_t);
|
||||
#undef strlcpy
|
||||
size_t strlcpy(char *, const char *, size_t);
|
||||
char *ttytostr(int, int);
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "../util.h"
|
||||
|
||||
size_t
|
||||
strlcat(char *dest, const char *src, size_t count)
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "../util.h"
|
||||
|
||||
size_t
|
||||
strlcpy(char *dest, const char *src, size_t size)
|
||||
|
Loading…
Reference in New Issue
Block a user