Re: [PATCH 1/1] cmd: avoid endless loop in sound play command

2023-01-03 Thread Simon Glass
On Fri, 30 Dec 2022 at 17:54, Heinrich Schuchardt wrote: > > A parameter starting with a hyphen leads to an endless loop in the sound > play command. > > Leave it to dectoul() to handle the hyphen. It will return 0 for a negative > number. > > Signed-off-by: Heinrich Schuchardt > --- > cmd/sound

[PATCH 1/1] cmd: avoid endless loop in sound play command

2022-12-30 Thread Heinrich Schuchardt
A parameter starting with a hyphen leads to an endless loop in the sound play command. Leave it to dectoul() to handle the hyphen. It will return 0 for a negative number. Signed-off-by: Heinrich Schuchardt --- cmd/sound.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c