--- deliantra/server/include/define.h 2007/07/10 05:51:38 1.64 +++ deliantra/server/include/define.h 2007/07/10 06:05:55 1.65 @@ -778,94 +778,6 @@ #define PREFER_HIGH 1 #define PREFER_LOW 0 -/* Simple function we use below to keep adding to the same string - * but also make sure we don't overwrite that string. - */ -static inline void -safe_strcat (char *dest, const char *orig, int *curlen, int maxlen) -{ - if (*curlen == (maxlen - 1)) - return; - - strncpy (dest + *curlen, orig, maxlen - *curlen - 1); - dest[maxlen - 1] = 0; - *curlen += strlen (orig); - - if (*curlen > (maxlen - 1)) - *curlen = maxlen - 1; -} - - -/* The SAFE versions of these call the safe_strcat function above. - * Ideally, all functions should use the SAFE functions, but they - * require some extra support in the calling function to remain as - * efficient. - */ -#define DESCRIBE_ABILITY_SAFE(retbuf, variable, name, len, maxlen) \ - if(variable) { \ - int i,j=0; \ - safe_strcat(retbuf,"(" name ": ", len, maxlen); \ - for(i=0; i