We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8012f6e commit d4bdf99Copy full SHA for d4bdf99
src/AsyncEventSource.cpp
@@ -144,7 +144,7 @@ size_t AsyncEventSourceMessage::send(AsyncClient *client) {
144
return 0;
145
}
146
const size_t len_to_send = _len - _sent;
147
- auto position = reinterpret_cast<const char*>(_data + _sent * sizeof(*_data));
+ auto position = reinterpret_cast<const char*>(_data + _sent);
148
const size_t sent_now = client->write(position, len_to_send);
149
_sent += sent_now;
150
return sent_now;
0 commit comments