char *ret=new char[strlen(path+1)];
char *ret=new char[strlen(path)+1];
char *get_system_path(const char *path){	char * slash = strchr(path, '/');	// If there is no separator, return the path as is	if(!slash)		{		char *ret=new char[strlen(path+1)];		strcpy(ret,path);		return ret;		}	int prefix_size = slash-path;	char *prefix = new char[prefix_size+1];	strncpy(prefix, path, prefix_size);	prefix[prefix_size] = 0;	const char *new_prefix = path_map[prefix];	delete [] prefix;	// If the prefix path is not recognised, return the path as is	if(!new_prefix)		{		char *ret=new char[strlen(path+1)];		strcpy(ret,path);		return ret;		}		char *new_path = new char[sizeof(char)*(strlen(new_prefix)+strlen(path)-prefix_size+1)];	strcpy(new_path, new_prefix);	strcat(new_path, slash);	return new_path;}