openbsd-ports/editors/scintilla/patches/patch-src_LexRuby_cxx
steven 134affccfd upgrade to 1.72
based on diffs from new maintainer Jeremy Evans <jeremyevans0 at gmail.com>
2007-01-18 10:56:27 +00:00

13 lines
433 B
Plaintext

$OpenBSD: patch-src_LexRuby_cxx,v 1.2 2007/01/18 10:56:27 steven Exp $
--- src/LexRuby.cxx.orig Thu Jan 18 08:42:00 2007
+++ src/LexRuby.cxx Thu Jan 18 08:42:00 2007
@@ -136,7 +136,7 @@ static int ClassifyWordRb(unsigned int s
chAttr = SCE_RB_IDENTIFIER;
styler.ColourTo(end, chAttr);
if (chAttr == SCE_RB_WORD) {
- strcpy(prevWord, s);
+ strlcpy(prevWord, s, MAX_KEYWORD_LENGTH+1);
} else {
prevWord[0] = 0;
}