[Click] [PATCH] PaintTee: configure parsing bug

Barret Rhoden brho at cs.berkeley.edu
Sat Nov 22 14:30:58 EST 2008


Hi - 

This fixes a config error in PaintTee.  It was crashing click with a
variety of memory errors while running on 2.6.24.

Barret


---
 elements/standard/painttee.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/elements/standard/painttee.cc
b/elements/standard/painttee.cc index e5d8b28..a65afd3 100644
--- a/elements/standard/painttee.cc
+++ b/elements/standard/painttee.cc
@@ -36,7 +36,7 @@ PaintTee::configure(Vector<String> &conf,
ErrorHandler *errh) {
     int anno = PAINT_ANNO_OFFSET;
     if (cp_va_kparse(conf, this, errh,
-		     "COLOR", cpkP+cpkM, cpUnsigned, &_color,
+		     "COLOR", cpkP+cpkM, cpByte, &_color,
 		     "ANNO", cpkP, cpAnno, 1, &anno,
 		     cpEnd) < 0)
 	return -1;
-- 
1.5.6.4



More information about the click mailing list