1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-20 17:20:49 +00:00
This commit is contained in:
rumbledethumps
2025-10-22 18:51:01 -07:00
parent 47c7160476
commit 4cb40a4155
+5 -1
View File
@@ -5,8 +5,12 @@
int __fastcall__ f_getcwd (char* name, int size)
{
int i, ax;
ria_set_ax (size);
ax = ria_call_int (RIA_OP_GETCWD);
if (ax > size) {
RIA.op = RIA_OP_ZXSTACK;
errno = ENOMEM;
return -1;
}
for (i = 0; i < ax; i++) {
name[i] = ria_pop_char ();
}