From b6db7079893895a411e81eb7741c23971a381c21 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 18 Nov 2014 05:28:27 +0100 Subject: [PATCH] amend 484e38053 --- libs/evoral/src/libsmf/smf_decode.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/evoral/src/libsmf/smf_decode.c b/libs/evoral/src/libsmf/smf_decode.c index b227797b1c..031577cb23 100644 --- a/libs/evoral/src/libsmf/smf_decode.c +++ b/libs/evoral/src/libsmf/smf_decode.c @@ -285,7 +285,7 @@ smf_event_decode_metadata(const smf_event_t *event) goto error; } - assert (off < BUFFER_SIZE); + assert (off <= BUFFER_SIZE); return (buf); error: @@ -343,7 +343,7 @@ smf_event_decode_system_realtime(const smf_event_t *event) return (NULL); } - assert (off < BUFFER_SIZE); + assert (off <= BUFFER_SIZE); return (buf); } @@ -375,7 +375,7 @@ smf_event_decode_sysex(const smf_event_t *event) } else { off += snprintf(buf + off, BUFFER_SIZE - off, "SysEx, manufacturer 0x%x", manufacturer); - assert (off < BUFFER_SIZE); + assert (off <= BUFFER_SIZE); return (buf); } @@ -491,7 +491,7 @@ smf_event_decode_system_common(const smf_event_t *event) return (NULL); } - assert (off < BUFFER_SIZE); + assert (off <= BUFFER_SIZE); return (buf); } @@ -640,7 +640,7 @@ smf_decode(const smf_t *smf) else off += snprintf(buf + off, BUFFER_SIZE - off, "; division: %d FPS, %d resolution", smf->frames_per_second, smf->resolution); - assert (off < BUFFER_SIZE); + assert (off <= BUFFER_SIZE); return (buf); }