From 1b38ceb0d4bb4ae32cb93c295e3ef493b91f9a78 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Thu, 28 May 2015 13:49:23 +0200 Subject: + Fixed defects found by Coverity (well, most of them) --- src/StormCommon.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/StormCommon.h') diff --git a/src/StormCommon.h b/src/StormCommon.h index d4bf57c..0b1ccb2 100644 --- a/src/StormCommon.h +++ b/src/StormCommon.h @@ -130,6 +130,15 @@ extern LCID lcFileLocale; // Preferred file locale extern unsigned char AsciiToLowerTable[256]; extern unsigned char AsciiToUpperTable[256]; +//----------------------------------------------------------------------------- +// Safe string functions + +void StringCopyA(char * dest, const char * src, size_t nMaxChars); +void StringCatA(char * dest, const char * src, size_t nMaxChars); + +void StringCopyT(TCHAR * dest, const TCHAR * src, size_t nMaxChars); +void StringCatT(TCHAR * dest, const TCHAR * src, size_t nMaxChars); + //----------------------------------------------------------------------------- // Encryption and decryption functions -- cgit v1.2.3