From owner-cvs-src@FreeBSD.ORG Fri Jul 4 20:39:24 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31D2B37B401; Fri, 4 Jul 2003 20:39:24 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFD2644025; Fri, 4 Jul 2003 20:39:23 -0700 (PDT) (envelope-from tjr@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h653dN0U012504; Fri, 4 Jul 2003 20:39:23 -0700 (PDT) (envelope-from tjr@repoman.freebsd.org) Received: (from tjr@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h653dNGW012503; Fri, 4 Jul 2003 20:39:23 -0700 (PDT) Message-Id: <200307050339.h653dNGW012503@repoman.freebsd.org> From: "Tim J. Robbins" Date: Fri, 4 Jul 2003 20:39:23 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/stdio vfwscanf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2003 03:39:24 -0000 tjr 2003/07/04 20:39:23 PDT FreeBSD src repository Modified files: lib/libc/stdio vfwscanf.c Log: Fix two incorrect uses of sizeof: we need to divide the size of the buffer by sizeof(wchar_t) to get the number of wide characters it contains. Remove the !hardway micro-optimisation from the CT_INT case to avoid having to fix it for wide characters. Revision Changes Path 1.6 +6 -11 src/lib/libc/stdio/vfwscanf.c