--- parser3/src/main/untaint.C 2001/05/14 13:18:07 1.48 +++ parser3/src/main/untaint.C 2001/05/19 19:10:20 1.50 @@ -5,11 +5,9 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: untaint.C,v 1.48 2001/05/14 13:18:07 parser Exp $ + $Id: untaint.C,v 1.50 2001/05/19 19:10:20 parser Exp $ */ -#include "pa_config_includes.h" - #include "pa_pool.h" #include "pa_string.h" #include "pa_hash.h" @@ -259,7 +257,8 @@ char *String::store_to(char *dest, Untai break; case UL_USER_HTML: { // tainted, untaint language: html-typo - char *html_for_typo=(char *)malloc(size()*2/* '\n' -> '\' 'n' */+1); + char *html_for_typo= + (char *)malloc(row->item.size*2/* '\n' -> '\' 'n' */+1); // note: // there still is a possibility that user // would not replace \n as she supposed to @@ -312,9 +311,9 @@ char *String::store_to(char *dest, Untai &b, "is %g times longer then '%s', " "while maximum, handled by Parser, is %d", - ((double)b.size())/a.size(), - a.cstr(), - UNTAINT_TIMES_BIGGER); + ((double)b.size())/a.size(), + a.cstr(), + UNTAINT_TIMES_BIGGER); } // skip 'a' in 'src'