summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parse.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/parse.c b/src/parse.c
index 2bb3f0e..ab65f50 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -66,25 +66,6 @@ xstrlcat(char *dst, const char *src, size_t dstsize)
#endif
}
-/**
- * like strlcpy() but returns true on success and false if the string got
- * truncated.
- */
-static inline Bool
-xstrlcpy(char *dst, const char *src, size_t dstsize)
-{
-#if defined(HAS_STRLCAT) || defined(HAVE_STRLCAT)
- return strlcpy(dst, src, dstsize) < dstsize;
-#else
- if (strlen(src) < dstsize) {
- strcpy(dst, src);
- return True;
- } else {
- return False;
- }
-#endif
-}
-
LFUNC(ParsePixels, int, (xpmData *data, unsigned int width,
unsigned int height, unsigned int ncolors,
unsigned int cpp, XpmColor *colorTable,