mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
decc6d022c
commit
904f867bdc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue