mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-28 08:01:26 +00:00
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@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
c55058563f
commit
6a463dc129
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user