$OpenBSD: patch-qtbase_src_tools_qdoc_tokenizer_cpp,v 1.3 2016/03/06 11:56:42 zhuk Exp $
Get rid of strcpy().
--- qtbase/src/tools/qdoc/tokenizer.cpp.ports.orig	Tue Oct 13 07:35:29 2015
+++ qtbase/src/tools/qdoc/tokenizer.cpp	Thu Dec 10 09:05:22 2015
@@ -483,7 +483,7 @@ int Tokenizer::getToken()
         }
     }
 
-    strcpy(yyLex, "end-of-input");
+    strlcpy(yyLex, "end-of-input", yyLexBufSize);
     yyLexLen = strlen(yyLex);
     return Tok_Eoi;
 }
@@ -581,8 +581,8 @@ void Tokenizer::start(const Location& loc)
     yyTokLoc = loc;
     yyCurLoc = loc;
     yyCurLoc.start();
-    strcpy(yyPrevLex, "beginning-of-input");
-    strcpy(yyLex, "beginning-of-input");
+    strlcpy(yyPrevLex, "beginning-of-input", yyLexBufSize);
+    strlcpy(yyLex, "beginning-of-input", yyLexBufSize);
     yyLexLen = strlen(yyLex);
     yyBraceDepth = 0;
     yyParenDepth = 0;
@@ -674,7 +674,7 @@ int Tokenizer::getTokenAfterPreprocessor()
           yyPrevLex. This way, we skip over the preprocessor
           directive.
         */
-        qstrcpy(yyLex, yyPrevLex);
+        strlcpy(yyLex, yyPrevLex, yyLexBufSize);
 
         /*
           If getToken() meets another #, it will call
