Hi! > + if (path != NULL) > + strcpy(path, buf); This should be at least strncpy() since we have the path length, or we may as well call set_dev_path(rc, path, path_len) here. -- Cyril Hrubis chrubis@suse.cz