arch: arm: mach-msm: using strlcpy instead of strncpy
[cascardo/linux.git] / arch / arm / mach-msm / clock-debug.c
index 4886404..b0fbdf1 100644 (file)
@@ -104,7 +104,7 @@ int __init clock_debug_add(struct clk *clock)
        if (!debugfs_base)
                return -ENOMEM;
 
-       strncpy(temp, clock->dbg_name, ARRAY_SIZE(temp)-1);
+       strlcpy(temp, clock->dbg_name, ARRAY_SIZE(temp));
        for (ptr = temp; *ptr; ptr++)
                *ptr = tolower(*ptr);