Skip to content

Comments

Wrong Name issue when not using USE_SDFAT#24

Open
spilz87 wants to merge 7 commits intoardyesp:masterfrom
dubit0:master
Open

Wrong Name issue when not using USE_SDFAT#24
spilz87 wants to merge 7 commits intoardyesp:masterfrom
dubit0:master

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