aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-07-10 17:08:24 +0200
committerAnton Khirnov <anton@khirnov.net>2019-07-10 17:08:24 +0200
commit765b385c8c9ab25fe0a9f6fead1be4028e226024 (patch)
tree95785de19827047579b85faf4b8605b5fa71a46b
parentc53cab55049cf667c29a6b4cb7a3b3842a07f04c (diff)
common: do not interpret printf sequences in mg2di_assert()
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.h b/common.h
index 03b33f6..0c644bd 100644
--- a/common.h
+++ b/common.h
@@ -33,7 +33,7 @@
#define mg2di_assert(x) \
do { \
if (!(x)) { \
- fprintf(stderr, "Assertion " #x " failed\n"); \
+ fputs("Assertion " #x " failed\n", stderr); \
abort(); \
} \
} while (0)