diff options
author | waker <waker@xps.localdomain> | 2009-07-03 20:07:18 +0200 |
---|---|---|
committer | waker <waker@xps.localdomain> | 2009-07-03 20:07:18 +0200 |
commit | ca9c87874ba542aee10995fccce2614429c2b2de (patch) | |
tree | 8a8fec97dca8aeb0283a1c54651e85729939435e /cvorbis.c | |
parent | 5444dba34faa75c0a0219e292df25ccad51f2d4a (diff) |
[WIP] src
Diffstat (limited to 'cvorbis.c')
-rw-r--r-- | cvorbis.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } |