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
diff --git a/src/encoding.cpp b/src/encoding.cpp
index 8c3aaed..23b35bd 100644
--- a/src/encoding.cpp
+++ b/src/encoding.cpp
@@ -432,7 +432,7 @@
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);
}