projects
/
ruby-vorbistagger.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e04f6c2
)
Code cleanup.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Fri, 18 Aug 2006 19:06:03 +0000
(21:06 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Wed, 23 Aug 2006 17:39:16 +0000
(19:39 +0200)
ext/vcedit.c
patch
|
blob
|
history
diff --git
a/ext/vcedit.c
b/ext/vcedit.c
index 414d6d060f31c0d98f6b3a4a12dfa18748e79904..f3ad2c95a1a1557468947739d46ec08838a70928 100644
(file)
--- a/
ext/vcedit.c
+++ b/
ext/vcedit.c
@@
-199,12
+199,12
@@
_commentheader_out (vcedit_state *s, ogg_packet *op)
oggpack_write (&opb, 1, 1);
- op->packet = _ogg_malloc (oggpack_bytes (&opb));
- memcpy (op->packet, opb.buffer, oggpack_bytes (&opb));
-
op->bytes = oggpack_bytes (&opb);
- op->b_o_s = 0;
- op->e_o_s = 0;
+ op->packet = _ogg_malloc (op->bytes);
+
+ memcpy (op->packet, opb.buffer, op->bytes);
+
+ op->b_o_s = op->e_o_s = 0;
op->granulepos = 0;
oggpack_writeclear (&opb);