Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2005 16:53:37 +0200 (CEST)
From:      Divacky Roman <xdivac02@stud.fit.vutbr.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/84994: gcc4.x cleanup of usr.bin/wc
Message-ID:  <200508161453.j7GErb1o015300@eva.fit.vutbr.cz>
Resent-Message-ID: <200508161500.j7GF0T2W045399@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         84994
>Category:       bin
>Synopsis:       gcc4.x cleanup of usr.bin/wc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 16 15:00:28 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Divacky Roman
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
home
>Environment:
FreeBSD witten 7.0-CURRENT FreeBSD 7.0-CURRENT #55: Tue Aug 16 12:59:09 CEST
2005     root@witten:/usr/obj/usr/src/sys/NEOLOGISM  i386


	
>Description:
gcc4.x (tested with gcc41) cleanup of usr.bin/wc
>How-To-Repeat:
apply the patch
>Fix:

Index: wc.c
===================================================================
RCS file: /home/ncvs/src/usr.bin/wc/wc.c,v
retrieving revision 1.21
diff -u -r1.21 wc.c
--- wc.c	27 Dec 2004 22:27:56 -0000	1.21
+++ wc.c	11 Aug 2005 13:35:48 -0000
@@ -214,7 +214,7 @@
 			if (!domulti || MB_CUR_MAX == 1) {
 				clen = 1;
 				wch = (unsigned char)*p;
-			} else if ((clen = mbrtowc(&wch, p, len, &mbs)) ==
+			} else if ((clen = mbrtowc(&wch, (const char *)p, len, &mbs)) ==
 			    (size_t)-1) {
 				if (!warned) {
 					errno = EILSEQ;
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508161453.j7GErb1o015300>