diff options
author | Roy Marples <roy@marples.name> | 2009-01-12 08:31:03 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-01-12 08:31:03 +0000 |
commit | 8a9a2d5fe9bbb80381f54da16460f1578f367be5 (patch) | |
tree | 2dcbfd63b7a8e47c060f314cb090a040ce0037a3 /src/librc | |
parent | a33554ab18a58a59628d777b7a5268882869b35c (diff) |
Use snprintf instead of strlcpy to save on size if not available.
Diffstat (limited to 'src/librc')
-rw-r--r-- | src/librc/librc-daemon.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c index f2c1b445..c3cdd860 100644 --- a/src/librc/librc-daemon.c +++ b/src/librc/librc-daemon.c @@ -31,29 +31,6 @@ #include "librc.h" -#ifdef __GLIBC__ -# if ! defined (__UCLIBC__) && ! defined (__dietlibc__) -static size_t strlcpy(char *dst, const char *src, size_t size) -{ - const char *s = src; - size_t n = size; - - if (n && --n) - do { - if (!(*dst++ = *src++)) - break; - } while (--n); - - if (!n) { - if (size) - *dst = '\0'; - while (*src++); - } - - return src - s - 1; -} -# endif -#endif #if defined(__linux__) |