Using long for file size in MG_OPEN_FILE ev_data

This commit is contained in:
Sergey Lyubka committed 2012-10-01 10:19:20 +01:00
1 parent 47651766fb
commit 365b5e8f8a
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -526,7 +526,7 @@ static int is_file_in_memory(struct mg_connection *conn, const char *path,
struct file *filep) {
conn->request_info.ev_data = (void *) path;
if ((filep->membuf = call_user(conn, MG_OPEN_FILE)) != NULL) {
filep->size = (int) (long) conn->request_info.ev_data;
filep->size = (long) conn->request_info.ev_data;
}
return filep->membuf != NULL;
}