From 5b82822c12e014771dceaf9d909e1c0f3653c5a9 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 23 Apr 2014 21:12:09 +0000 Subject: (svn r26486) -Codechange: replace a number of snprintfs with seprintf --- src/saveload/saveload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/saveload') diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index 34b396ddc..707c85510 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -2614,7 +2614,7 @@ static SaveOrLoadResult DoLoad(LoadFilter *reader, bool load_check) /* loader for this savegame type is not implemented? */ if (fmt->init_load == NULL) { char err_str[64]; - snprintf(err_str, lengthof(err_str), "Loader for '%s' is not available.", fmt->name); + seprintf(err_str, lastof(err_str), "Loader for '%s' is not available.", fmt->name); SlError(STR_GAME_SAVELOAD_ERROR_BROKEN_INTERNAL_ERROR, err_str); } -- cgit v1.2.3-70-g09d2