rem: char buffer[SYS_MAX_PATH_LEN + 1];
add: char pathBuffer[SYS_MAX_PATH_LEN + 1]; strlcpy(pathBuffer, path, SYS_MAX_PATH_LEN - 1);
context: sys_open_dir(const char *path){	char buffer[SYS_MAX_PATH_LEN + 1];	strncpy(buffer, path, SYS_MAX_PATH_LEN);	buffer[SYS_MAX_PATH_LEN] = 0;	return dir_open(buffer, true);}