Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Name issue when not using USE_SDFAT #24

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

spilz87
Copy link

@spilz87 spilz87 commented Apr 25, 2023

in file ESPWebDAV.cpp :

#ifdef USE_SDFAT
	char buf[255];
	curFile->getName(buf, sizeof(buf));
#else
	const char* buf = curFile->name() + 1;
#endif

the "+1" schouldn't exist, it change the name of the files and we can not download anymore

it should be

#ifdef USE_SDFAT
	char buf[255];
	curFile->getName(buf, sizeof(buf));
#else
	const char* buf = curFile->name();
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants