$OpenBSD: patch-qtbase_src_corelib_tools_qbytearray_cpp,v 1.2 2015/04/19 13:18:28 zhuk Exp $
Get rid of strcpy().
--- qtbase/src/corelib/tools/qbytearray.cpp.ports.orig	Tue Feb 17 07:56:49 2015
+++ qtbase/src/corelib/tools/qbytearray.cpp	Wed Apr  8 00:38:30 2015
@@ -90,12 +90,15 @@ int qAllocMore(int alloc, int extra) Q_DECL_NOTHROW
 
 char *qstrdup(const char *src)
 {
+    size_t sz = strlen(src) + 1;
     if (!src)
         return 0;
-    char *dst = new char[strlen(src) + 1];
-    return qstrcpy(dst, src);
+    char *dst = new char[sz];
+    memcpy(dst, src, sz);
+    return dst;
 }
 
+#ifndef Q_OS_OPENBSD
 /*! \relates QByteArray
 
     Copies all the characters up to and including the '\\0' from \a
@@ -123,6 +126,7 @@ char *qstrcpy(char *dst, const char *src)
     return strcpy(dst, src);
 #endif
 }
+#endif
 
 /*! \relates QByteArray
 
@@ -139,8 +143,6 @@ char *qstrcpy(char *dst, const char *src)
     \note When compiling with Visual C++ compiler version 14.00
     (Visual C++ 2005) or later, internally the function strncpy_s
     will be used.
-
-    \sa qstrcpy()
 */
 
 char *qstrncpy(char *dst, const char *src, uint len)
