From 22754f403d147aeb193e8b4811d327a5b8909991 Mon Sep 17 00:00:00 2001 From: Colin Leitner Date: Sat, 20 Aug 2011 11:49:50 +0200 Subject: [PATCH] Fixed bug in handle_directory_request, that used the unintialized path variable instead of dir for an error message. --- mongoose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index 7f1211f5..7bd142bd 100644 --- a/mongoose.c +++ b/mongoose.c @@ -2403,7 +2403,7 @@ static void handle_directory_request(struct mg_connection *conn, if ((dirp = opendir(dir)) == NULL) { send_http_error(conn, 500, "Cannot open directory", - "Error: opendir(%s): %s", path, strerror(ERRNO)); + "Error: opendir(%s): %s", dir, strerror(ERRNO)); return; }