diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2004-02-01 14:30:48 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2004-02-01 14:30:48 +0000 |
commit | 996149bf54ab1da7c86989fc3840df39f3228aa2 (patch) | |
tree | c6d6bb310edf542086185e92a76a28ddb3898a96 /audio | |
parent | Add bnbt, a BitTorrent Tracker in C++. (diff) |
Fix build on -STABLE.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/mp3splt/files/patch-mp3.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/audio/mp3splt/files/patch-mp3.c b/audio/mp3splt/files/patch-mp3.c new file mode 100644 index 000000000000..1fb687739581 --- /dev/null +++ b/audio/mp3splt/files/patch-mp3.c @@ -0,0 +1,14 @@ +--- mp3.c.orig Sun Feb 1 09:28:27 2004 ++++ mp3.c Sun Feb 1 09:29:11 2004 +@@ -529,9 +529,10 @@ + { + while (state->bytes < begin) + { ++ off_t to_read; + if (feof(state->file_input)) + return -1; +- off_t to_read = (begin - state->bytes); ++ to_read = (begin - state->bytes); + if (to_read > MAD_BSIZE) + to_read = MAD_BSIZE; + if ((state->data_len = fread(state->inputBuffer, 1, to_read, state->file_input))<=0) |