Skip to content

Commit 3014e8d

Browse files
changed 1 to sizeof(varialbe)
1 parent b2b3f39 commit 3014e8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SocketWrapper/src/SocketHelpers.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void MbedSocketClass::feedWatchdog() {
125125

126126
void MbedSocketClass::body_callback(const char* data, uint32_t data_len) {
127127
feedWatchdog();
128-
fwrite(data, 1, data_len, download_target);
128+
fwrite(data, sizeof(data[0]), data_len, download_target);
129129
}
130130

131131
int MbedSocketClass::download(char* url, const char* target_file, bool const is_https) {

0 commit comments

Comments
 (0)