hciattach: instead of strlcpy with strncpy to avoid rome build error

Instead of strlcpy with strncpy to avoid rome build error.

Upstream-Status: Inappropriate [bugfix]

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
diff --git a/tools/hciattach_rome.c b/tools/hciattach_rome.c
index 242a49f..c3e9fde 100644
--- a/tools/hciattach_rome.c
+++ b/tools/hciattach_rome.c
@@ -893,12 +893,12 @@
         return ret;
     }
 
-    while (getline(&line, &bytes_read, pfile) > 0 ) {
+    while (getline(&line, (size_t *)&bytes_read, pfile) > 0 ) {
         if (line[0] != '#'  && line[0] != '\n') {
             pch = memchr(line, '=', strlen(line));
             if (pch != NULL) {
                 position = pch - line;
-                strlcpy(param_str, line, sizeof(param_str));
+                strncpy(param_str, line, sizeof(param_str));
                 if (position >= sizeof(param_str))
                     position = sizeof(param_str) - 1;
                 if (strncmp(param_str, param, position) == 0) {