* move to qt3 (with PORTHOME quirk for uic3) * add license note * add $OpenBSD$ tag to patch files * update pkg/SECURITY file to reflect reality
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
$OpenBSD: patch-resParser_l,v 1.2 2002/07/17 07:27:02 wilfried Exp $
|
|
--- resParser.l.orig Tue Jun 11 12:25:10 2002
|
|
+++ resParser.l Wed Jul 17 09:24:02 2002
|
|
@@ -65,11 +65,11 @@ iddot [a-zA-Z][a-zA-Z0-9\.]*
|
|
{geomspec} {
|
|
int len = ::strlen( yytext );
|
|
if ( len >= LEX_BUFFER_MAX ) {
|
|
- ::strncpy( lexerBuffer, yytext, LEX_BUFFER_MAX );
|
|
+ ::strlcpy( lexerBuffer, yytext, LEX_BUFFER_MAX );
|
|
lexerBuffer[ LEX_BUFFER_MAX-1 ] = 0;
|
|
}
|
|
else {
|
|
- ::strncpy( lexerBuffer, yytext, len );
|
|
+ ::strlcpy( lexerBuffer, yytext, len );
|
|
lexerBuffer[ len ] = 0;
|
|
}
|
|
yylval->str = lexerBuffer;
|
|
@@ -207,11 +207,11 @@ iddot [a-zA-Z][a-zA-Z0-9\.]*
|
|
/* strip the quotes */
|
|
int len = ::strlen( yytext );
|
|
if ( len >= LEX_BUFFER_MAX ) {
|
|
- ::strncpy( lexerBuffer, &(yytext[1]), LEX_BUFFER_MAX );
|
|
+ ::strlcpy( lexerBuffer, &(yytext[1]), LEX_BUFFER_MAX );
|
|
lexerBuffer[ LEX_BUFFER_MAX-1 ] = 0;
|
|
}
|
|
else {
|
|
- ::strncpy( lexerBuffer, &(yytext[1]), len-2 );
|
|
+ ::strlcpy( lexerBuffer, &(yytext[1]), len-2 );
|
|
lexerBuffer[ len-2 ] = 0;
|
|
}
|
|
yylval->str = lexerBuffer;
|