]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/property/property_parse.c
put_str: Use memcpy instead of strncpy
[thirdparty/openssl.git] / crypto / property / property_parse.c
index cdfe4777353aff3cc4a1072006265e1f7034d74a..b2bf3cd63180a92fa23f2db3c8b986ec2cf7262a 100644 (file)
@@ -600,7 +600,7 @@ static void put_str(const char *str, char **buf, size_t *remain, size_t *needed)
         len = *remain - 1;
 
     if (len > 0) {
-        strncpy(*buf, str, len);
+        memcpy(*buf, str, len);
         *buf += len;
         *remain -= len;
     }