Commit 0eaaa8df authored by conrad's avatar conrad

skeleton.c: fix potential segfault in use of memset in previous patch


git-svn-id: http://svn.annodex.net/liboggz/trunk@3458 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 960a9fc4
......@@ -115,7 +115,7 @@ int ogg_from_fishead(fishead_packet *fp,ogg_packet *op) {
if (!fp || !op) return -1;
memset(&op, 0, sizeof(op));
memset(op, 0, sizeof(*op));
op->packet = _ogg_calloc(FISHEAD_SIZE, sizeof(unsigned char));
if (!op->packet) return -1;
......@@ -149,7 +149,7 @@ int ogg_from_fisbone(fisbone_packet *fp,ogg_packet *op) {
packet_size = FISBONE_SIZE + fp->current_header_size;
memset (&op, 0, sizeof (op));
memset (op, 0, sizeof (*op));
op->packet = _ogg_calloc (packet_size, sizeof(unsigned char));
if (!op->packet) return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment