[apparmor] [PATCH] fix output of dfa
John Johansen
john.johansen at canonical.com
Tue Aug 17 08:26:25 BST 2010
On certain graphs the dfa graph dump output can become messed up as it isn't properly handling non-printing characters in the case of single character
output. Drop the cast to signed character which messes up the output.
===================================================================
--- a/parser/libapparmor_re/regexp.y
+++ b/parser/libapparmor_re/regexp.y
@@ -1833,7 +1833,7 @@
else {
os << "\t\"" << *i->first << "\" -> \"";
os << *j->second << "\" [" << endl;
- os << "\t\tlabel=\"" << (char)j->first << "\"" << endl;
+ os << "\t\tlabel=\"" << j->first << "\"" << endl;
os << "\t]" << endl;
}
}
More information about the AppArmor
mailing list