From 52861d77dfe4e470cac6114cd9f335b30a88b9f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Wed, 30 Jul 2008 19:38:32 +0000 Subject: 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 --- src/chunk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/chunk.c') 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 */ -- cgit v1.2.1