#include <sys/stat.h>
#include <sys/syscall.h>
#include <lustre/lustreapi.h>
-#include <libcfs/util/string.h> /* only needed for compat strlcpy() */
#include <linux/lustre/lustre_ver.h> /* only until LUSTRE_VERSION_CODE is gone */
#include "lustreapi_internal.h"
*/
bool liblustreapi_initialized;
-
/**
* Initialize the library once at startup.
*
return -1;
}
- if (strlcpy(version, ptr, version_size) >= version_size) {
+ if (snprintf(version, version_size, "%s", ptr) >= version_size) {
errno = EOVERFLOW;
return -1;
}