diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2012-04-13 19:31:23 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2012-04-13 19:31:28 +0200 |
commit | 56d91ddd2cd42b782cde0bb3fdf4eb9ebe7597be (patch) | |
tree | abd2a51503f3a8845d1b381fca671958ce00da46 /src | |
parent | 869b8141a8383171334129859789155f3ad42f90 (diff) |
Fixing my constant-strings constructs (Thanks Kurtis!)
Diffstat (limited to 'src')
-rw-r--r-- | src/HttpServer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HttpServer.cc b/src/HttpServer.cc index 751b01a..23af486 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -36,7 +36,7 @@ class HttpWorker : public Task { ~HttpWorker(); static void buildErrorTemplate(IO<Handle> h) { m_errorTemplate.setTemplate(h); } template<size_t S> - static void buildErrorTemplate(const char str[S]) { m_errorTemplate.setTemplate(str, S); } + static void buildErrorTemplate(const char (&str)[S]) { m_errorTemplate.setTemplate(str, S - 1); } static void buildErrorTemplate(const char * str, ssize_t s) { m_errorTemplate.setTemplate(str, s); } static void buildErrorTemplate(const String & str) { m_errorTemplate.setTemplate(str); } private: |