diff --git a/lib/formats/raw.c b/lib/formats/raw.c index 9f09fa717..e2ad89757 100644 --- a/lib/formats/raw.c +++ b/lib/formats/raw.c @@ -192,7 +192,7 @@ int raw_sprint(struct io *io, char *buf, size_t len, size_t *wbytes, struct samp out: if (wbytes) *wbytes = o * (bits / 8); - return 1; + return cnt; } int raw_sscan(struct io *io, const char *buf, size_t len, size_t *rbytes, struct sample *smps[], unsigned cnt)