Fix a engclient_cmd and amxclient_cmd buffer issue (#438)

This commit is contained in:
Vincent Herbet
2017-07-21 23:44:05 +02:00
committed by GitHub
parent aa9ec3f872
commit 6bd2f1feec
2 changed files with 32 additions and 20 deletions

View File

@ -476,9 +476,10 @@ unsigned int UTIL_ReplaceAll(char *subject, size_t maxlength, const char *search
return total;
}
template unsigned int strncopy<char, char>(char *, const char *src, size_t count);
template unsigned int strncopy<cell, char>(cell *, const char *src, size_t count);
template unsigned int strncopy<cell, cell>(cell *, const cell *src, size_t count);
template unsigned int strncopy<char, char>(char *, const char *, size_t);
template unsigned int strncopy<char, cell>(char *, const cell *, size_t);
template unsigned int strncopy<cell, char>(cell *, const char *, size_t);
template unsigned int strncopy<cell, cell>(cell *, const cell *, size_t);
template <typename D, typename S>
unsigned int strncopy(D *dest, const S *src, size_t count)