summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/webengine.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-04-13 12:25:00 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-04-13 12:25:21 +0200
commit2edee0b81142bb565d646145f79cb6e70a7f1d4a (patch)
treec6cfb2a26a0c981972d280633bcac240b5f481e1 /src/emu/webengine.c
parentdcd4f2a5b8476240591fd519c172c3f41710839a (diff)
updated astring constructors to have just one string param, to be more like std::string (nw)
Diffstat (limited to 'src/emu/webengine.c')
-rw-r--r--src/emu/webengine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/webengine.c b/src/emu/webengine.c
index 78be772a731..70c6e50f43b 100644
--- a/src/emu/webengine.c
+++ b/src/emu/webengine.c
@@ -260,7 +260,7 @@ static int filename_endswith(const char *str, const char *suffix)
// This function will be called by mongoose on every new request.
int web_engine::begin_request_handler(struct mg_connection *conn)
{
- astring file_path(mg_get_option(m_server, "document_root"), PATH_SEPARATOR, conn->uri);
+ astring file_path = astring(mg_get_option(m_server, "document_root")).cat(PATH_SEPARATOR).cat(conn->uri);
if (filename_endswith(file_path.c_str(), ".lp"))
{
FILE *fp = NULL;