semihosting: Fix typo in semihost_rename

Fix typo in semihost_rename. Now it actually sends the `new_name` as well as the `old_name`.
pull/15271/head
Casper Meijn 2022-04-19 21:44:17 +02:00
parent decc6d022c
commit 904f867bdc
1 changed files with 2 additions and 2 deletions

View File

@ -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