mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-17 18:50:32 +08:00
shadowing
This commit is contained in:
parent
03b44b324b
commit
9eba3a849a
1 changed files with 3 additions and 5 deletions
|
@ -287,11 +287,9 @@ int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
|
||||||
memcpy(out, resolved, length);
|
memcpy(out, resolved, length);
|
||||||
|
|
||||||
if (dirname_length) {
|
if (dirname_length) {
|
||||||
int i;
|
for (int j = length - 1; j >= 0; --j) {
|
||||||
|
if (out[j] == '/') {
|
||||||
for (i = length - 1; i >= 0; --i) {
|
*dirname_length = j;
|
||||||
if (out[i] == '/') {
|
|
||||||
*dirname_length = i;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue