encoding: fix log_alert_exit(): do not treat error as format string

This is rather a cosmetic change aimed to make ASAN / Coverity happy.
In general, we never pass any input from an untrusted source.

Change-Id: I26d654da4c3bf5fd86a298c3027fd9820c932308
This commit is contained in:
Vadim Yanitskiy 2020-01-25 05:03:36 +07:00
parent 4590b91728
commit f6b83a24a3
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ int Encoding::write_immediate_assignment_reject(
static inline void log_alert_exit(const char * error)
{
LOGP(DRLCMACUL, LOGL_ERROR, error);
LOGP(DRLCMACUL, LOGL_ERROR, "%s", error);
pcu_tx_txt_ind(PCU_OML_ALERT, error);
exit(1);
}