chiark / gitweb /
[PATCH] use numeric owner/group as default values to avoid parsing userdb
[elogind.git] / libsysfs / sysfs_bus.c
index bff7f78f05e8bc05e198cb1cbced2ee257b77da3..d47b94ca24681fee52af3d2b4cb410d0fd65bf2c 100644 (file)
@@ -20,7 +20,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  *
  */
-#include "sysfs/libsysfs.h"
+#include "libsysfs.h"
 #include "sysfs.h"
 
 static void sysfs_close_dev(void *dev)
@@ -384,7 +384,7 @@ int sysfs_find_driver_bus(const char *driver, char *busname, size_t bsize)
                        if (drivers != NULL) {
                                dlist_for_each_data(drivers, curdrv, char) {
                                        if (strcmp(driver, curdrv) == 0) {
-                                               safestrncpy(busname, 
+                                               safestrcpymax(busname, 
                                                                bus, bsize);
                                                sysfs_close_list(drivers);
                                                sysfs_close_list(buslist);