From: Abramo Bagnara Date: Wed, 12 Apr 2000 20:44:14 +0000 (+0000) Subject: Make explicit an assert X-Git-Tag: v1.0.3~382 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=16b31a3f6c1cf86a7de75b37f4d66889985b572f;p=alsa-utils.git Make explicit an assert --- diff --git a/aplay/aplay.c b/aplay/aplay.c index 4346464..2f4e6ef 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -37,6 +37,7 @@ #include #include #include +#include #include "aconfig.h" #include "formats.h" #include "version.h" @@ -1173,6 +1174,8 @@ void playback_go(int fd, int loaded, u_long count, int rtype, char *name) format_change = 1; set_format(); + assert(loaded < buffer_size); + while (count) { l = loaded; loaded = 0;