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 17:46:41 +0200
From: Paul Schutte <sjpschutte@...il.com>
To: musl@...ts.openwall.com
Subject: Re: Trouble with sscanf

Thanks.

BTW. This code that I just showed you is what you run every time you use
top, ps, vmstat on Debian or Ubuntu.

Regards
Paul

On Fri, Nov 16, 2012 at 5:39 PM, Szabolcs Nagy <nsz@...t70.net> wrote:

> * 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
>

Content of type "text/html" skipped

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.