瀏覽代碼

fix a typo

Daniel Rempel 9 年之前
父節點
當前提交
3ed3e9e736
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -1411,7 +1411,7 @@ mg_fopen(struct mg_connection *conn,
 	memset(filep, 0, sizeof(*filep));
 
 	struct stat st;
-	if (stat(filename, &st) == 0)
+	if (stat(path, &st) == 0)
 		filep->size = st.st_size;
 
 	if (!is_file_in_memory(conn, path, filep)) {