if (command) {
const char *text = command->context.text;
int slices = command->context.chunk_count;
- int length = text ? strlen(text) : -1;
+ size_t length = text ? strlen(text) : 0;
- g_snprintf(buffer, sizeof(buffer), "RCmd %p (id %d, %c%c%c len %d, slices %d, text %s)", command,
+ g_snprintf(buffer, sizeof(buffer), "RCmd %p (id %d, %c%c%c len %zu, slices %d, text %s)", command,
command->context.last_id,
command->discardable ? 'D' : '-', command->want_discard_previous_reading ? 'W' : '-',
command->is_playing ? 'P' : '-',