Skip to content

Commit 9f326aa

Browse files
authored
Merge pull request #15271 from caspermeijn/patch-1
semihosting: Fix typo in semihost_rename
2 parents 88b6bb0 + 904f867 commit 9f326aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/source/mbed_semihost_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ int semihost_rename(const char *old_name, const char *new_name)
121121
uint32_t args[4];
122122
args[0] = (uint32_t)old_name;
123123
args[1] = (uint32_t)strlen(old_name);
124-
args[0] = (uint32_t)new_name;
125-
args[1] = (uint32_t)strlen(new_name);
124+
args[2] = (uint32_t)new_name;
125+
args[3] = (uint32_t)strlen(new_name);
126126
return __semihost(SYS_RENAME, args);
127127
}
128128
#endif

0 commit comments

Comments
 (0)