rem: char pathCopy[SYS_MAX_PATH_LEN + 1];
add: char pathBuffer[SYS_MAX_PATH_LEN + 1]; strlcpy(pathBuffer, path, SYS_MAX_PATH_LEN - 1);
context: sys_open(const char *path, int omode){	char pathCopy[SYS_MAX_PATH_LEN + 1];	strncpy(pathCopy, path, SYS_MAX_PATH_LEN);	pathCopy[SYS_MAX_PATH_LEN] = 0;	return file_open(pathCopy, omode, true);}