From: Blue Swirl <blauwirbel@gmail.com>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] virtio-9p: Make sure -virtfs option works correctly
Date: Sat, 4 Sep 2010 10:07:23 +0000 [thread overview]
Message-ID: <AANLkTimPm3BKj1Cj2-b3iM1dHDistjp2FCwaNkx75+Of@mail.gmail.com> (raw)
In-Reply-To: <1283444279-17241-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com>
Thanks, applied.
On Thu, Sep 2, 2010 at 4:17 PM, Aneesh Kumar K.V
<aneesh.kumar@linux.vnet.ibm.com> wrote:
> When making copy of arguments we were doing partial copy
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
> ---
> vl.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index 9f7358e..df11ab3 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -2332,7 +2332,7 @@ int main(int argc, char **argv, char **envp)
> len += strlen(qemu_opt_get(opts, "security_model"));
> arg_fsdev = qemu_malloc((len + 1) * sizeof(*arg_fsdev));
>
> - snprintf(arg_fsdev, len * sizeof(*arg_fsdev),
> + snprintf(arg_fsdev, (len + 1) * sizeof(*arg_fsdev),
> "%s,id=%s,path=%s,security_model=%s",
> qemu_opt_get(opts, "fstype"),
> qemu_opt_get(opts, "mount_tag"),
> @@ -2343,7 +2343,7 @@ int main(int argc, char **argv, char **envp)
> len += 2*strlen(qemu_opt_get(opts, "mount_tag"));
> arg_9p = qemu_malloc((len + 1) * sizeof(*arg_9p));
>
> - snprintf(arg_9p, len * sizeof(*arg_9p),
> + snprintf(arg_9p, (len + 1) * sizeof(*arg_9p),
> "virtio-9p-pci,fsdev=%s,mount_tag=%s",
> qemu_opt_get(opts, "mount_tag"),
> qemu_opt_get(opts, "mount_tag"));
> --
> 1.7.0.4
>
>
>
prev parent reply other threads:[~2010-09-04 10:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-02 16:17 [Qemu-devel] [PATCH] virtio-9p: Make sure -virtfs option works correctly Aneesh Kumar K.V
2010-09-04 10:07 ` Blue Swirl [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimPm3BKj1Cj2-b3iM1dHDistjp2FCwaNkx75+Of@mail.gmail.com \
--to=blauwirbel@gmail.com \
--cc=aliguori@us.ibm.com \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).