[Spice-devel] [PATCH] replay: fix formatting string

Christophe Fergeau cfergeau at redhat.com
Tue Sep 8 01:36:23 PDT 2015


ACK.


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);
>  }
>  
> -- 
> 2.4.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150908/25ff5f57/attachment.sig>


More information about the Spice-devel mailing list