fix: don't use plain strings in vars as printf formats

This commit is contained in:
Stéphane Lesimple
2021-01-15 19:41:17 +01:00
parent e8eb7824aa
commit 66cf0d25ee
11 changed files with 25 additions and 25 deletions

View File

@@ -1087,7 +1087,7 @@ reread:
g_mutex_lock(rc->mutex);
if(rc->workerError) /* something went wrong in the worker thread */
{ g_mutex_unlock(rc->mutex);
Stop(rc->workerError);
Stop("%s", rc->workerError);
}
while(rc->bufState[rc->readPtr] != BUF_EMPTY)
{ g_cond_wait(rc->canRead, rc->mutex);
@@ -1240,7 +1240,7 @@ reread:
g_mutex_lock(rc->mutex);
if(rc->workerError) /* something went wrong in the worker thread */
{ g_mutex_unlock(rc->mutex);
Stop(rc->workerError);
Stop("%s", rc->workerError);
}
while(rc->bufState[rc->readPtr] != BUF_EMPTY)