summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2015-02-08 19:10:39 +0000
committerStefan Bühler <stbuehler@web.de>2015-02-08 19:10:39 +0000
commit4365bdbebe4542efc28ce6a79e1341870abc24d3 (patch)
tree589ba9986feae644f090a5c6080f9b39b9eda655 /src/log.c
parent1be163b44a53eebb0a7b0ed562d12e3f252794e1 (diff)
downloadlighttpd-git-4365bdbebe4542efc28ce6a79e1341870abc24d3.tar.gz
Remove buffer_prepare_copy() and buffer_prepare_append()
* removed almost all usages of buffer as "memory" (without terminating zero) * refactored cgi variable name encoding From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2977 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 75decfe5..097e59ea 100644
--- a/src/log.c
+++ b/src/log.c
@@ -332,7 +332,7 @@ static int log_buffer_prepare(buffer *b, server *srv, const char *filename, unsi
if (-1 == srv->errorlog_fd) return -1;
/* cache the generated timestamp */
if (srv->cur_ts != srv->last_generated_debug_ts) {
- buffer_prepare_copy(srv->ts_debug_str, 255);
+ buffer_string_prepare_copy(srv->ts_debug_str, 255);
strftime(srv->ts_debug_str->ptr, srv->ts_debug_str->size - 1, "%Y-%m-%d %H:%M:%S", localtime(&(srv->cur_ts)));
srv->ts_debug_str->used = strlen(srv->ts_debug_str->ptr) + 1;