aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-01-06 08:00:02 -0800
committerAndroid Code Review <code-review@android.com>2011-01-06 08:00:02 -0800
commit5788b8816bb822360c88421041b22262c0589bc5 (patch)
tree33badff6220b0ae3b3c4dbc12c43e0605dc9a3bb
parent2d37afb33ede9227b6701d18db209e0ae3ac5d01 (diff)
parente771abe2254fb3786b82e96a4576c5f4560b8350 (diff)
downloadexternal_qemu-5788b8816bb822360c88421041b22262c0589bc5.zip
external_qemu-5788b8816bb822360c88421041b22262c0589bc5.tar.gz
external_qemu-5788b8816bb822360c88421041b22262c0589bc5.tar.bz2
Merge "Fix buffer overwrite caused by typo."
-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;