summaryrefslogtreecommitdiff
path: root/src/stat_cache.c
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2015-08-22 23:27:17 +0000
committerStefan Bühler <stbuehler@web.de>2015-08-22 23:27:17 +0000
commit9257d7df4f9887bef6a8e8d51ac9eebd3b2fe872 (patch)
tree6ec94719257a4b2af3c9168c41fdd9a8bee73a61 /src/stat_cache.c
parentd7cd5b087a8f2388611cdf3dfeb3dcb94505f63c (diff)
downloadlighttpd1.4-9257d7df4f9887bef6a8e8d51ac9eebd3b2fe872.tar.gz
lighttpd1.4-9257d7df4f9887bef6a8e8d51ac9eebd3b2fe872.zip
[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
Diffstat (limited to 'src/stat_cache.c')
-rw-r--r--src/stat_cache.c2
1 files changed, 1 insertions, 1 deletions
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;