$OpenBSD: patch-src_LexFortran_cxx,v 1.2 2007/01/18 10:56:27 steven Exp $
--- src/LexFortran.cxx.orig	Tue Mar 28 17:31:51 2006
+++ src/LexFortran.cxx	Tue Mar 28 17:31:51 2006
@@ -380,7 +380,7 @@ static void FoldFortranDoc(unsigned int 
 						doLabels[posLabel] = atoi(Label);
 					}
 				}
-				strcpy(prevWord, s);
+				strlcpy(prevWord, s, sizeof(prevWord));
 			}
 		} else if (style == SCE_F_LABEL) {
 			if(IsADigit(ch) && !IsADigit(chNext)) {
@@ -410,7 +410,7 @@ static void FoldFortranDoc(unsigned int 
 			lineCurrent++;
 			levelPrev = levelCurrent;
 			visibleChars = 0;
-			strcpy(prevWord, "");
+			prevWord[0] = 0;
 		}
 		/***************************************/
 		if (!isspacechar(ch)) visibleChars++;
