rem: snprintf(buf, get_filename(path) - path, "%s", path);
add: snprintf(buf, get_filename(path) - path, path);
context: static char *get_directory(char *path){	char buf[PATH_MAX + 1];	assert(path);	snprintf(buf, get_filename(path) - path, "%s", path);	return strdup(buf);}