diff options
author | Stefan Bühler <stbuehler@web.de> | 2015-02-08 19:10:39 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2015-02-08 19:10:39 +0000 |
commit | 4365bdbebe4542efc28ce6a79e1341870abc24d3 (patch) | |
tree | 589ba9986feae644f090a5c6080f9b39b9eda655 /src/log.c | |
parent | 1be163b44a53eebb0a7b0ed562d12e3f252794e1 (diff) | |
download | lighttpd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |