shithub: choc

Download patch

ref: 39bfee97bd8d52922c8f18246732537427b1ed8e
parent: 67712c6a6563a706339f7ceed9ca4c7ee85bf67f
author: Turo Lamminen <[email protected]>
date: Tue Feb 13 14:08:48 EST 2018

Add format attribute to DEH_fprintf

--- a/src/deh_str.h
+++ b/src/deh_str.h
@@ -26,7 +26,7 @@
 
 char *DEH_String(char *s);
 void DEH_printf(char *fmt, ...) PRINTF_ATTR(1, 2);
-void DEH_fprintf(FILE *fstream, char *fmt, ...);
+void DEH_fprintf(FILE *fstream, char *fmt, ...) PRINTF_ATTR(2, 3);
 void DEH_snprintf(char *buffer, size_t len, char *fmt, ...);
 void DEH_AddStringReplacement(char *from_text, char *to_text);