summaryrefslogtreecommitdiff
path: root/cvorbis.c
diff options
context:
space:
mode:
authorGravatar waker <waker@xps.localdomain>2009-07-03 20:07:18 +0200
committerGravatar waker <waker@xps.localdomain>2009-07-03 20:07:18 +0200
commitca9c87874ba542aee10995fccce2614429c2b2de (patch)
tree8a8fec97dca8aeb0283a1c54651e85729939435e /cvorbis.c
parent5444dba34faa75c0a0219e292df25ccad51f2d4a (diff)
[WIP] src
Diffstat (limited to 'cvorbis.c')
-rw-r--r--cvorbis.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cvorbis.c b/cvorbis.c
index 7ce772e1..d0863d2c 100644
--- a/cvorbis.c
+++ b/cvorbis.c
@@ -42,6 +42,7 @@ cvorbis_read (char *bytes, int size)
{
if (!file)
return -1;
+ printf ("vorbis read %d bytes!\n", size);
for (;;)
{
// read ogg
@@ -60,6 +61,10 @@ cvorbis_read (char *bytes, int size)
size -= ret;
bytes += ret;
}
+ else if (ret > size) {
+ printf ("read more than requested!\n");
+ break;
+ }
else {
break;
}