Skip to content

Commit

Permalink
semihosting: Fix typo in semihost_rename
Browse files Browse the repository at this point in the history
Fix typo in semihost_rename. Now it actually sends the `new_name` as well as the `old_name`.
  • Loading branch information
caspermeijn committed Apr 26, 2022
1 parent decc6d0 commit 904f867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/source/mbed_semihost_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ int semihost_rename(const char *old_name, const char *new_name)
uint32_t args[4];
args[0] = (uint32_t)old_name;
args[1] = (uint32_t)strlen(old_name);
args[0] = (uint32_t)new_name;
args[1] = (uint32_t)strlen(new_name);
args[2] = (uint32_t)new_name;
args[3] = (uint32_t)strlen(new_name);
return __semihost(SYS_RENAME, args);
}
#endif
Expand Down

0 comments on commit 904f867

Please sign in to comment.