Skip to content
Snippets Groups Projects
Commit dd5ff806 authored by rswindell's avatar rswindell
Browse files

Changed safe_snprintf() prototype to match snprintf() - missing const.

parent 2be9e4b4
Branches
Tags
No related merge requests found
......@@ -67,7 +67,7 @@
/****************************************************************************/
/* Used to replace snprintf() guarantees to terminate. */
/****************************************************************************/
int DLLCALL safe_snprintf(char *dst, size_t size, char *fmt, ...)
int DLLCALL safe_snprintf(char *dst, size_t size, const char *fmt, ...)
{
va_list argptr;
int numchars;
......
......@@ -272,7 +272,7 @@ extern "C" {
DLLEXPORT int DLLCALL xp_random(int);
DLLEXPORT char* DLLCALL os_version(char *str);
DLLEXPORT char* DLLCALL lastchar(const char* str);
DLLEXPORT int DLLCALL safe_snprintf(char *dst, size_t size, char *fmt, ...);
DLLEXPORT int DLLCALL safe_snprintf(char *dst, size_t size, const char *fmt, ...);
#if defined(_WIN32)
#define msclock() clock()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment