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

Frediano Ziglio fziglio at redhat.com
Mon Sep 7 08:33:07 PDT 2015


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



More information about the Spice-devel mailing list