aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-01-06 16:57:08 +0100
committerDavid 'Digit' Turner <digit@android.com>2011-01-06 16:57:08 +0100
commite771abe2254fb3786b82e96a4576c5f4560b8350 (patch)
tree33badff6220b0ae3b3c4dbc12c43e0605dc9a3bb
parent2d37afb33ede9227b6701d18db209e0ae3ac5d01 (diff)
downloadexternal_qemu-e771abe2254fb3786b82e96a4576c5f4560b8350.zip
external_qemu-e771abe2254fb3786b82e96a4576c5f4560b8350.tar.gz
external_qemu-e771abe2254fb3786b82e96a4576c5f4560b8350.tar.bz2
Fix buffer overwrite caused by typo.
Change-Id: I1101b4e97400698c59a28c2d5c0dc9d8cfb9c21b
-rw-r--r--outputchannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/outputchannel.c b/outputchannel.c
index a58c767..192b488 100644
--- a/outputchannel.c
+++ b/outputchannel.c
@@ -26,7 +26,7 @@ struct OutputChannel {
OutputChannel* output_channel_alloc(void* opaque, OutputChannelPrintf cb)
{
- OutputChannel* oc = qemu_mallocz(sizeof(oc));
+ OutputChannel* oc = qemu_mallocz(sizeof(*oc));
oc->printf = cb;
oc->opaque = opaque;
oc->written = 0;