liblxc_la_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
endif
+if !HAVE_STRLCAT
+liblxc_la_SOURCES += ../include/strlcat.c ../include/strlcat.h
+endif
+
if !HAVE_GETGRGID_R
liblxc_la_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
endif
init_lxc_static_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
endif
+if !HAVE_STRLCAT
+init_lxc_static_SOURCES += ../include/strlcat.c ../include/strlcat.h
+endif
+
if !HAVE_GETGRGID_R
liblxc_la_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
endif
#include "include/strlcpy.h"
#endif
+#ifndef HAVE_STRLCAT
+#include "include/strlcat.h"
+#endif
+
lxc_log_define(btrfs, lxc);
/*
if (!retpath)
return NULL;
(void)strlcpy(retpath, args.name, len);
- strncat(retpath, "/", 1);
- strncat(retpath, name, name_len);
+ (void)strlcat(retpath, "/", 1);
+ (void)strlcat(retpath, name, name_len);
} else {
/* we're at the root of ref_tree */
len = name_len + 1;
if (!retpath)
return NULL;
*retpath = '\0';
- strncat(retpath, name, name_len);
+ (void)strlcat(retpath, name, name_len);
}
return retpath;
}