[cvs] bogofilter/src format.c, 1.45, 1.46 lexer_v3.l, 1.156, 1.157 token.c, 1.100, 1.101 token.h, 1.19, 1.20

Matthias Andree matthias.andree at gmx.de
Sun Mar 13 15:51:08 CET 2005


David Relson <relson at users.sourceforge.net> writes:

> -		buff += format_string(buff, msg_addr ? (const char *)msg_addr->text : "UNKNOWN", 0, prec, flags, end);
> +		buff += format_string(buff, msg_addr.leng != 0 ? (const
> char *)msg_addr.text : "UNKNOWN", 0, prec, flags, end);

Is the zero-termination of msg_addr, msg_id, queue_id guaranteed in all
circumstances or just a by-product from the Z() debug macro?

I'm asking since the conversion from baseaddress/length strings to C
strings isn't always providing the extra byte if these debug macros are
switched off.

-- 
Matthias Andree
_______________________________________________
Bogofilter-dev mailing list
Bogofilter-dev at bogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev



More information about the bogofilter-dev mailing list