[Spice-devel] [PATCH] replay: fix formatting string
Victor Toso
lists at victortoso.com
Tue Sep 8 01:35:44 PDT 2015
Hi,
On Mon, Sep 07, 2015 at 04:33:07PM +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> server/red_replay_qxl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/server/red_replay_qxl.c b/server/red_replay_qxl.c
> index fe53dda..ad1a8fd 100644
> --- a/server/red_replay_qxl.c
> +++ b/server/red_replay_qxl.c
> @@ -310,7 +310,7 @@ static void red_replay_rect_ptr(SpiceReplay *replay, const char *prefix, QXLRect
> {
> char template[1024];
>
> - snprintf(template, sizeof(template), "rect %s %%d %%d %%d %%d %%d", prefix);
> + snprintf(template, sizeof(template), "rect %s %%d %%d %%d %%d\n", prefix);
> replay_fscanf(replay, template, &qxl->top, &qxl->left, &qxl->bottom, &qxl->right);
Looks good.
toso
More information about the Spice-devel
mailing list