Skip to content

Bug in sendContent_P #864

Closed
Closed
@JohnSL

Description

@JohnSL

It looks like there is a bug in the following line of sendContent_P:

contentUnitLen = contentNext - content;

I believe the memccpy_P function returns the last copied byte in the buffer, not the source. So therefore the line above should be this:

contentUnitLen = contentNext - contentUnit;

This is in the file ESP8266WebServer.cpp. I've created a pull request, #880, for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions