diff --git a/src/modules/os.c b/src/modules/os.c index 7c366730..6c4d5d05 100644 --- a/src/modules/os.c +++ b/src/modules/os.c @@ -48,6 +48,7 @@ static bool os_chdir(int argc, py_Ref argv) { } static bool os_getcwd(int argc, py_Ref argv) { + PY_CHECK_ARGC(0); char buf[1024]; if(!platform_getcwd(buf, sizeof(buf))) return OSError("getcwd() failed"); py_newstr(py_retval(), buf);