[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <eddce408-a4ee-7968-cd07-160497fa32ed@users.sourceforge.net>
Date: Mon, 26 Sep 2016 20:00:11 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
Cc: gigaset307x-common@...ts.sourceforge.net, netdev@...r.kernel.org,
Karsten Keil <isdn@...ux-pingi.de>,
Paul Bolle <pebolle@...cali.nl>,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: Re: ISDN-Gigaset: Enclose two expressions for the sizeof operator by
parentheses
>> @@ -53,7 +53,7 @@ void gigaset_dbg_buffer(enum debuglevel level, const unsigned char *msg,
>> {
>> unsigned char outbuf[80];
>> unsigned char c;
>> - size_t space = sizeof outbuf - 1;
>> + size_t space = sizeof(outbuf - 1);
>
> What?! Does that compile?
Yes, of course. - The calculated value will be lower than intended.
Unfortunately, I stumbled on one of my own programming mistakes once again.
I sent a corrected update suggestion for further considerations a few minutes ago.
Regards,
Markus
Powered by blists - more mailing lists