On Thu, Mar 31, 2005 at 12:11:25AM -0700, Zan Lynx wrote:

> (not subscribed, please CC replies to me.)
> 
> In cut_fields_mb in cut.c, wint_t wc is not initialized before being
> compared to WEOF.  It just so happens that when I compile it on my
> system, through some miracle of perversity and stack layout, wc picks up
> -1 as its initial value.
> 
> On cut.c line 836, change wint_t wc; to wint_t wc = 0;  That fixes it
> for me.

I don't think that function exists in stock coreutils-5.2.1 (not sure
which version you are using though).  There is a function of that name
added in the coreutils-i18n.patch that we apply for Fedora Core, and
the fix you mention has been there since at least Fedora Core 3.

Tim.
*/

Attachment: pgpofKSjKJ2Mk.pgp
Description: PGP signature

_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to