From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2297 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Trouble with sscanf Date: Fri, 16 Nov 2012 16:39:21 +0100 Message-ID: <20121116153921.GJ12537@port70.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1353080372 18929 80.91.229.3 (16 Nov 2012 15:39:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2012 15:39:32 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2298-gllmg-musl=m.gmane.org@lists.openwall.com Fri Nov 16 16:39:43 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TZO19-00040K-Hu for gllmg-musl@plane.gmane.org; Fri, 16 Nov 2012 16:39:43 +0100 Original-Received: (qmail 11533 invoked by uid 550); 16 Nov 2012 15:39:33 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11525 invoked from network); 16 Nov 2012 15:39:33 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2297 Archived-At: * Paul Schutte [2012-11-16 17:28:57 +0200]: > sscanf(b, "cpu %Lu %Lu %Lu %Lu %Lu %Lu %Lu %Lu", &cuse, &cice, &csys, &cide, &ciow, &cxxx, &cyyy, &czzz); there is no L length modifier for ints L is for long double formatting (%Lf %Lg %Le ...) i guess musl returns an early matching error but they don't check for that rewrite it to use %llu