ref: 2347699033e3e1660d2dc867667ef9acee995f1d
parent: 39bfee97bd8d52922c8f18246732537427b1ed8e
author: Turo Lamminen <[email protected]>
date: Tue Feb 13 14:13:19 EST 2018
Add format attribute to DEH_snprintf
--- a/src/deh_str.h
+++ b/src/deh_str.h
@@ -27,7 +27,7 @@
char *DEH_String(char *s);
void DEH_printf(char *fmt, ...) PRINTF_ATTR(1, 2);
void DEH_fprintf(FILE *fstream, char *fmt, ...) PRINTF_ATTR(2, 3);
-void DEH_snprintf(char *buffer, size_t len, char *fmt, ...);
+void DEH_snprintf(char *buffer, size_t len, char *fmt, ...) PRINTF_ATTR(3, 4);
void DEH_AddStringReplacement(char *from_text, char *to_text);