From: Jack Lange Date: Fri, 16 Sep 2011 16:32:54 +0000 (-0400) Subject: stupid typo fix to the stream interface to prevent memory corruption X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=504b1b73f85263b47bba96207b0a615933f87b15 stupid typo fix to the stream interface to prevent memory corruption --- diff --git a/palacios/src/interfaces/vmm_stream.c b/palacios/src/interfaces/vmm_stream.c index 377a545..4b391ac 100644 --- a/palacios/src/interfaces/vmm_stream.c +++ b/palacios/src/interfaces/vmm_stream.c @@ -36,7 +36,7 @@ struct v3_stream * v3_stream_open(struct v3_vm_info * vm, const char * name, V3_ASSERT(stream_hooks != NULL); V3_ASSERT(stream_hooks->open != NULL); - stream = V3_Malloc(sizeof(struct v3_stream *)); + stream = V3_Malloc(sizeof(struct v3_stream)); stream->input = input; stream->guest_stream_data = guest_stream_data;