improve validation errors

This commit is contained in:
rumbledethumps
2025-04-27 23:52:23 -07:00
parent 5cb1bc60fc
commit 34bb14bc6e
6 changed files with 10 additions and 6 deletions

View File

@@ -7,7 +7,8 @@ unsigned char __fastcall__ _sysremove (const char* name)
size_t namelen;
namelen = strlen (name);
if (namelen > 255) {
return _mappederrno (EINVAL);
RIA.errno = EINVAL;
return __mappederrno(RIA.errno);
}
while (namelen) {
ria_push_char (name[--namelen]);