projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89bf57c
)
http_file: fix fread call (make fetch work again)
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 16 Dec 2009 14:17:15 +0000
(15:17 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 16 Dec 2009 14:17:15 +0000
(15:17 +0100)
src/filter_http_file.cpp
patch
|
blob
|
history
diff --git
a/src/filter_http_file.cpp
b/src/filter_http_file.cpp
index
00fab9e
..
cf46974
100644
(file)
--- a/
src/filter_http_file.cpp
+++ b/
src/filter_http_file.cpp
@@
-158,7
+158,7
@@
void yf::HttpFile::Rep::fetch_file(mp::Session &session,
Z_HTTP_Response *hres = gdu->u.HTTP_Response;
hres->content_len = sz;
hres->content_buf = (char*) odr_malloc(o, hres->content_len);
- if (fread(hres->content_buf, 1, hres->content_len, f) != 1)
+ if (fread(hres->content_buf, hres->content_len, 1, f) != 1)
{
fclose(f);
Z_GDU *gdu = o.create_HTTP_Response(session, req, 500);