$OpenBSD: patch-qtbase_src_tools_qdoc_tokenizer_cpp,v 1.1 2014/12/13 05:47:37 zhuk Exp $
Get rid of strcpy().
--- qtbase/src/tools/qdoc/tokenizer.cpp.ports.orig	Sat Dec 13 00:40:41 2014
+++ qtbase/src/tools/qdoc/tokenizer.cpp	Sat Dec 13 00:45:04 2014
@@ -490,7 +490,7 @@ int Tokenizer::getToken()
         }
     }
 
-    strcpy(yyLex, "end-of-input");
+    strlcpy(yyLex, "end-of-input", yyLexBufSize);
     yyLexLen = strlen(yyLex);
     return Tok_Eoi;
 }
@@ -580,8 +580,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;
@@ -673,7 +673,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
