foxygit / doom Log in
commit 51a73a6c5c724353702e01c37a1d5dc8da377bd8
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Feb 17 16:14:12 2018 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Feb 17 16:14:12 2018 +0200

    Add format string attribute to M_snprintf
---
 src/m_misc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/m_misc.h b/src/m_misc.h
index c6debfd0..0225b827 100644
--- a/src/m_misc.h
+++ b/src/m_misc.h
@@ -46,7 +46,7 @@ char *M_StringJoin(const char *s, ...);
 boolean M_StringStartsWith(const char *s, const char *prefix);
 boolean M_StringEndsWith(const char *s, const char *suffix);
 int M_vsnprintf(char *buf, size_t buf_len, const char *s, va_list args);
-int M_snprintf(char *buf, size_t buf_len, const char *s, ...);
+int M_snprintf(char *buf, size_t buf_len, const char *s, ...) PRINTF_ATTR(3, 4);
 char *M_OEMToUTF8(const char *ansi);

 #endif