[Spice-commits] server/red-replay-qxl.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jan 8 12:55:37 UTC 2019
server/red-replay-qxl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6a463dc129c58ff9e6b160a1c6dcf8a4add837fd
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Mon Jan 7 16:56:06 2019 +0000
red-replay-qxl: Use PRIxPTR constant for string formatting
These constants are meant to be used in format string for pointers
types. Use them for portability.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/server/red-replay-qxl.c b/server/red-replay-qxl.c
index 6958a495..558848ca 100644
--- a/server/red-replay-qxl.c
+++ b/server/red-replay-qxl.c
@@ -227,7 +227,7 @@ static replay_t read_binary(SpiceReplay *replay, const char *prefix, size_t *siz
uint8_t *zlib_buffer;
z_stream strm;
- snprintf(template, sizeof(template), "binary %%d %s %%ld:%%n", prefix);
+ snprintf(template, sizeof(template), "binary %%d %s %%" PRIdPTR ":%%n", prefix);
replay_fscanf_check(replay, template, &with_zlib, size, &replay->end_pos);
if (replay->error) {
return REPLAY_ERROR;
More information about the Spice-commits
mailing list