Whamcloud - gitweb
LU-4970 tests: wait async LFSCK updates to be done
[fs/lustre-release.git] / lustre / utils / libiam.c
index a5f3173..704601e 100644 (file)
@@ -55,7 +55,6 @@
 #endif
 
 #include <libcfs/libcfs.h>
-#include <liblustre.h>
 #include <lustre/libiam.h>
 
 typedef __u32 lvar_hash_t;
@@ -349,7 +348,7 @@ static char *iam_convert(int size, int need_convert, char *source)
                         free(opt);
                 }
         } else {
-                strncpy(ptr, source, size + 1);
+               strlcpy(ptr, source, size + 1);
         }
 
         return ptr;