diff options
author | David 'Digit' Turner <digit@android.com> | 2011-01-06 08:00:02 -0800 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2011-01-06 08:00:02 -0800 |
commit | 5788b8816bb822360c88421041b22262c0589bc5 (patch) | |
tree | 33badff6220b0ae3b3c4dbc12c43e0605dc9a3bb | |
parent | 2d37afb33ede9227b6701d18db209e0ae3ac5d01 (diff) | |
parent | e771abe2254fb3786b82e96a4576c5f4560b8350 (diff) | |
download | external_qemu-5788b8816bb822360c88421041b22262c0589bc5.zip external_qemu-5788b8816bb822360c88421041b22262c0589bc5.tar.gz external_qemu-5788b8816bb822360c88421041b22262c0589bc5.tar.bz2 |
Merge "Fix buffer overwrite caused by typo."
-rw-r--r-- | outputchannel.c | 2 |
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; |