summaryrefslogtreecommitdiff
path: root/src/chunk.c
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2008-07-30 19:38:32 +0000
committerStefan Bühler <stbuehler@web.de>2008-07-30 19:38:32 +0000
commit52861d77dfe4e470cac6114cd9f335b30a88b9f5 (patch)
tree3d05443ad7a0efcefcbcbc46c5a76c202e53af14 /src/chunk.c
parent0c8ebbeb606561da6acb4d576fb8ab24571fa2dc (diff)
downloadlighttpd-git-52861d77dfe4e470cac6114cd9f335b30a88b9f5.tar.gz
Replace buffer_{append,copy}_string with the _len variant where possible (#1732, thx crypt)
Replace BUFFER_{APPEND,COPY}_STRING_CONST with _len(b, CONST_STRL_LEN(x)) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2250 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/chunk.c')
-rw-r--r--src/chunk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk.c b/src/chunk.c
index f5ec5645..6eb45c30 100644
--- a/src/chunk.c
+++ b/src/chunk.c
@@ -296,7 +296,7 @@ chunk *chunkqueue_get_append_tempfile(chunkqueue *cq) {
buffer_copy_string_buffer(template, ds->value);
BUFFER_APPEND_SLASH(template);
- BUFFER_APPEND_STRING_CONST(template, "lighttpd-upload-XXXXXX");
+ buffer_append_string_len(template, CONST_STR_LEN("lighttpd-upload-XXXXXX"));
if (-1 != (c->file.fd = mkstemp(template->ptr))) {
/* only trigger the unlink if we created the temp-file successfully */