summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9>2015-08-22 23:27:17 +0000
committerstbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9>2015-08-22 23:27:17 +0000
commita2c81f733c3efcf9885cb3f0a24789873a2a6a1e (patch)
tree6ec94719257a4b2af3c9168c41fdd9a8bee73a61
parent600761adbcce12b9dba42eb0ec665577be598b1c (diff)
downloadlighttpd-a2c81f733c3efcf9885cb3f0a24789873a2a6a1e.tar.gz
[bsd xattr] fix compile break with BSD extended attributes in stat_cache
From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3023 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r--NEWS1
-rw-r--r--src/stat_cache.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 87b53e24..d07b372a 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,7 @@ NEWS
* fix some unchecked return value warnings
* [kqueue] fix kevent call
* [autoconf] define HAVE_CRYPT when crypt() is present
+ * [bsd xattr] fix compile break with BSD extended attributes in stat_cache
- 1.4.36 - 2015-07-26
* use keep-alive timeout while waiting for HTTP headers; use always the read timeout while waiting for the HTTP body
diff --git a/src/stat_cache.c b/src/stat_cache.c
index dd381d78..2c66891c 100644
--- a/src/stat_cache.c
+++ b/src/stat_cache.c
@@ -230,7 +230,7 @@ static int stat_cache_attr_get(buffer *buf, char *name) {
static int stat_cache_attr_get(buffer *buf, char *name) {
ssize_t attrlen;
- buffer_prepare_copy(buf, 1023);
+ buffer_string_prepare_copy(buf, 1023);
if (-1 != (attrlen = extattr_get_file(name, EXTATTR_NAMESPACE_USER, "Content-Type", buf->ptr, buf->size - 1))) {
buf->used = attrlen + 1;