ref: 729ba987bddc2a99ae441fa015cfa53d1ee1cc1e
parent: 2c0921509f0972adb174d4ec5f8705328b4a2e3f
author: Turo Lamminen <[email protected]>
date: Sat May 19 10:52:28 EDT 2018
dehacked: Make DEH_fprintf fmt parameter const
--- a/src/deh_str.c
+++ b/src/deh_str.c
@@ -401,7 +401,7 @@
// fprintf(), performing a replacement on the format string.
-void DEH_fprintf(FILE *fstream, char *fmt, ...)
+void DEH_fprintf(FILE *fstream, const char *fmt, ...)
{
va_list args;
const char *repl;
--- a/src/deh_str.h
+++ b/src/deh_str.h
@@ -26,7 +26,7 @@
const char *DEH_String(const char *s) PRINTF_ARG_ATTR(1);
void DEH_printf(const char *fmt, ...) PRINTF_ATTR(1, 2);
-void DEH_fprintf(FILE *fstream, char *fmt, ...) PRINTF_ATTR(2, 3);
+void DEH_fprintf(FILE *fstream, const char *fmt, ...) PRINTF_ATTR(2, 3);
void DEH_snprintf(char *buffer, size_t len, char *fmt, ...) PRINTF_ATTR(3, 4);
void DEH_AddStringReplacement(const char *from_text, const char *to_text);