Remove UTIL_Format() and UTIL_VarArgs()
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include "ham_const.h"
|
||||
#include "hooklist.h"
|
||||
#include "offsets.h"
|
||||
#include <amtl/am-string.h>
|
||||
|
||||
extern hook_t hooklist[];
|
||||
|
||||
@@ -108,7 +109,7 @@ static void read_mirror(char *input)
|
||||
*data='\0';
|
||||
|
||||
// mark down the source
|
||||
UTIL_Format(source, sizeof(source)-1, "%s", input);
|
||||
ke::SafeSprintf(source, sizeof(source)-1, "%s", input);
|
||||
|
||||
*data=old;
|
||||
|
||||
@@ -128,13 +129,13 @@ static void read_mirror(char *input)
|
||||
old=*data;
|
||||
*data='\0';
|
||||
|
||||
UTIL_Format(dest, sizeof(dest)-1, "%s", data2);
|
||||
ke::SafeSprintf(dest, sizeof(dest)-1, "%s", data2);
|
||||
|
||||
*data=old;
|
||||
|
||||
if (strcmp(dest, CurrentModName)==0)
|
||||
{
|
||||
UTIL_Format(CurrentModName, sizeof(CurrentModName)-1, "%s", source);
|
||||
ke::SafeSprintf(CurrentModName, sizeof(CurrentModName)-1, "%s", source);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -313,7 +314,7 @@ int ReadConfig(void)
|
||||
FILE *fp=fopen(FileName,"r");
|
||||
|
||||
|
||||
UTIL_Format(CurrentModName, sizeof(CurrentModName)-1, "%s", MF_GetModname());
|
||||
ke::SafeSprintf(CurrentModName, sizeof(CurrentModName)-1, "%s", MF_GetModname());
|
||||
|
||||
if (!fp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user