We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d07bf02 commit 0405b22Copy full SHA for 0405b22
1 file changed
unix/modos.c
@@ -44,7 +44,8 @@
44
45
STATIC mp_obj_t mod_os_stat(mp_obj_t path_in) {
46
struct stat sb;
47
- const char *path = mp_obj_str_get_str(path_in);
+ uint len;
48
+ const char *path = mp_obj_str_get_data(path_in, &len);
49
50
int res = stat(path, &sb);
51
RAISE_ERRNO(res, errno);
0 commit comments