* Fix some unused result warnings.

* Handle folder art a little differently than file album art.
This commit is contained in:
Justin Maggard
2011-11-19 08:26:10 +00:00
parent d42f8fc193
commit 875f0e2351
5 changed files with 105 additions and 78 deletions

View File

@ -45,6 +45,13 @@ strcatf(struct string_s *str, const char *fmt, ...)
return ret;
}
inline void
strncpyt(char *dst, const char *src, size_t len)
{
strncpy(dst, src, len);
dst[len-1] = '\0';
}
int
ends_with(const char * haystack, const char * needle)
{