mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
fixed symlink name in mem spiffs tree
the used strtok(...,".")` is cutting the name to the first dot linkname.txt.lnk -> linkname with the fix it is linkname.txt.lnk -> linkname.txt
This commit is contained in:
parent
9f4a02808b
commit
99d5a72879
2 changed files with 6 additions and 2 deletions
|
@ -651,8 +651,11 @@ void rdv40_spiffs_safe_print_tree(void) {
|
|||
|
||||
read_from_spiffs((char *)pe->name, (uint8_t *)linkdest, SPIFFS_OBJ_NAME_LEN);
|
||||
sprintf(resolvedlink, "(.lnk) --> %s", linkdest);
|
||||
// Kind of stripping the .lnk extension
|
||||
strtok((char *)pe->name, ".");
|
||||
char *linkname = (char *)pe->name;
|
||||
int len = strlen(linkname);
|
||||
if (len >= 4 && strcmp(&linkname[len - 4], ".lnk") == 0) {
|
||||
linkname[len - 4] = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
Dbprintf("[%04x] " _YELLOW_("%5i") " B |-- %s%s", pe->obj_id, pe->size, pe->name, resolvedlink);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue