freebsd-ports/sysutils/pftop/files/patch-sf-scanner.l
Max Laier 1a986cb5e9 Update to 0.7 - adds state display filters. While here also add a patch to
support dynamic ALTQ (by ignoring INACTIVE queues).

Approved by:	flz
2008-04-01 15:10:34 +00:00

11 lines
335 B
Text

--- sf-scanner.l.orig 2007-11-07 07:34:18.000000000 +0100
+++ sf-scanner.l 2008-04-01 17:03:25.853268641 +0200
@@ -233,7 +233,7 @@
size_t len = strlen(yytext) * 4 + 1;
char *v = malloc(len);
if (v != NULL)
- strnvis(v, yytext, len, 0);
+ strvis(v, yytext, 0);
sf_error("illegal token: %s", v);
free(v);
}