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