Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 16 Nov 2012 16:39:21 +0100
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: Trouble with sscanf

* Paul Schutte <sjpschutte@...il.com> [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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.