bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix itinerate struct beep array


From: Samuel Thibault
Subject: Re: Fix itinerate struct beep array
Date: Tue, 27 Aug 2019 15:48:04 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Hello,

guy fleury iteriteka, le mar. 27 août 2019 08:27:40 +0200, a ecrit:
> [1]http://git.savannah.gnu.org/cgit/hurd/hurd.git/tree/console-client/
> generic-speaker.c#n417
> 
> for (i = 0; i < sizeof (*beep); i++)
> should be:
> for (i = 0; i < (sizeof(beep) / sizeof (*beep)); i++)

Indeed! It happens to produce the same value because the array has 4
elements and pointers in the array are 4 bytes long, but that's sheer
luck :)

I have applied the fix, thanks!
Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]