22 lines
655 B
Plaintext
22 lines
655 B
Plaintext
|
$OpenBSD: patch-src_LexFortran_cxx,v 1.1.1.1 2003/08/14 18:24:31 sturm Exp $
|
||
|
--- src/LexFortran.cxx.orig 2003-08-13 17:04:03.000000000 +1000
|
||
|
+++ src/LexFortran.cxx 2003-08-13 17:09:32.000000000 +1000
|
||
|
@@ -261,7 +261,7 @@ static void FoldFortranDoc(unsigned int
|
||
|
}
|
||
|
s[j] = '\0';
|
||
|
levelCurrent += classifyFoldPointFortran(s, prevWord);
|
||
|
- strcpy(prevWord, s);
|
||
|
+ strlcpy(prevWord, s, sizeof(prevWord));
|
||
|
}
|
||
|
}
|
||
|
if (atEOL) {
|
||
|
@@ -276,7 +276,7 @@ static void FoldFortranDoc(unsigned int
|
||
|
lineCurrent++;
|
||
|
levelPrev = levelCurrent;
|
||
|
visibleChars = 0;
|
||
|
- strcpy(prevWord, "");
|
||
|
+ prevWord[0] = 0;
|
||
|
}
|
||
|
|
||
|
if (!isspacechar(ch))
|