From 5e84a869376b9ece9ce385bf9a92ae8ba227b214 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 23 Jul 2010 19:22:23 +0800 Subject: msgb: Avoid warnings that the string might contain %s or such.. --- include/osmocore/msgb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osmocore/msgb.h b/include/osmocore/msgb.h index fb4a7013..962ba4e0 100644 --- a/include/osmocore/msgb.h +++ b/include/osmocore/msgb.h @@ -65,7 +65,7 @@ extern void msgb_reset(struct msgb *m); #include static inline void msgb_abort(struct msgb *msg, const char *text) { - fprintf(stderr, text); + fprintf(stderr, "%s", text); abort(); } #endif -- cgit v1.2.3