Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Fix bug in const String& AsyncWebServerRequest::arg(const __FlashStringHelper * data) const#334

Merged
me-no-dev merged 1 commit intome-no-dev:masterfrom
CarlosRDomin:master
Jul 24, 2018
Merged

Fix bug in const String& AsyncWebServerRequest::arg(const __FlashStringHelper * data) const#334
me-no-dev merged 1 commit intome-no-dev:masterfrom
CarlosRDomin:master

Conversation

@CarlosRDomin
Copy link
Copy Markdown
Contributor

Fixes a crash when calling AsyncWebServerRequest::arg with a flash string param (eg: request->arg(F("<arg name>")) crashes). Solution is to call strcpy_P instead of strcpy, since the variable p is of type PGM_P and not char *.

…ngHelper * data) const

Fixes crash in AsyncWebServerRequest::arg with flash string param (eg: `request->arg(F("<arg name>"))` crashes). Solution is to call `strcpy_P` instead of `strcpy`, since the variable `p` is of type `PGM_P` and not `char *`.
@me-no-dev me-no-dev merged commit 6986587 into me-no-dev:master Jul 24, 2018
@me-no-dev
Copy link
Copy Markdown
Owner

Sorry for delaying this so long :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants