Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HTTPClient by
Diff: data/HTTPFile.cpp
- Revision:
- 29:9ee96efc1c20
- Parent:
- 27:32a53068ce03
- Child:
- 33:d4d1475bafc0
--- a/data/HTTPFile.cpp Sat May 17 19:54:21 2014 +0000 +++ b/data/HTTPFile.cpp Sat Jun 14 14:43:09 2014 +0000 @@ -1,6 +1,6 @@ #include "HTTPFile.h" -#define DEBUG "HTfi" +//#define DEBUG "HTfi" #include <cstdio> #if (defined(DEBUG) && !defined(TARGET_LPC11U24)) #define DBG(x, ...) std::printf("[DBG %s %3d] "x"\r\n", DEBUG, __LINE__, ##__VA_ARGS__); @@ -39,7 +39,7 @@ size_t written; INFO("write(%d,%s) m_len(%d), chunk %d", len, buf, m_len, m_chunked); if (file) { - written = fwrite(&buf, 1, len, file); + written = fwrite(buf, 1, len, file); INFO(" writ:%d, ftell: %d", written, ftell(file)); if ((!m_chunked && (ftell(file) >= m_len)) || (m_chunked && !written)) { INFO("closing");