]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/yang_translator.c
lib: strncpy -> strlcpy | memcpy
[mirror_frr.git] / lib / yang_translator.c
index 6d6f92836fbf247167cfe1c86e204355ff934d25..76a6cc5fd1954d40b54683c436cb88c0fa783c38 100644 (file)
@@ -511,7 +511,7 @@ static void str_replace(char *o_string, const char *s_string,
        if (!ch)
                return;
 
-       strncpy(buffer, o_string, ch - o_string);
+       memcpy(buffer, o_string, ch - o_string);
        buffer[ch - o_string] = 0;
 
        sprintf(buffer + (ch - o_string), "%s%s", r_string,