opnsense-ports/sysutils/acpica-tools/files/patch-source_compiler_aslsupport.l
Franco Fichtner cb07a35399 */*: sync with upstream
Taken from: HardenedBSD
2017-11-18 07:44:25 +01:00

23 lines
528 B
Text

--- source/compiler/aslsupport.l.orig 2017-11-10 16:05:28 UTC
+++ source/compiler/aslsupport.l
@@ -525,7 +525,7 @@ static void
count (
int Type)
{
- int i;
+ char *p;
switch (Type)
@@ -547,9 +547,9 @@ count (
break;
}
- for (i = 0; (yytext[i] != 0) && (yytext[i] != EOF); i++)
+ for (p = yytext; *p != '\0'; p++)
{
- AslInsertLineBuffer (yytext[i]);
+ AslInsertLineBuffer (*p);
*Gbl_LineBufPtr = 0;
}
}