blueloveTH 6 päivää sitten
vanhempi
commit
7435251873
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/modules/os.c

+ 1 - 0
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);