msgb: Avoid warnings that the string might contain %s or such..
authorHolger Hans Peter Freyther <zecke@selfish.org>
Fri, 23 Jul 2010 11:22:23 +0000 (19:22 +0800)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Fri, 23 Jul 2010 11:22:23 +0000 (19:22 +0800)
include/osmocore/msgb.h

index fb4a701..962ba4e 100644 (file)
@@ -65,7 +65,7 @@ extern void msgb_reset(struct msgb *m);
 #include <stdlib.h>
 static inline void msgb_abort(struct msgb *msg, const char *text)
 {
-       fprintf(stderr, text);
+       fprintf(stderr, "%s", text);
        abort();
 }
 #endif