From e74eb838540574016a020790888073f72008a2b3 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sat, 14 Nov 2020 17:47:10 -0600 Subject: [PATCH] feat(string): add STORM_MAX_PATH and STORM_MAX_STR --- storm/String.cpp | 2 +- storm/String.hpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/storm/String.cpp b/storm/String.cpp index 31975ea..3610b4f 100644 --- a/storm/String.cpp +++ b/storm/String.cpp @@ -134,7 +134,7 @@ size_t SStrCopy(char* dest, const char* source, size_t destsize) { char* destbuf = dest; - if (destsize == 0x7FFFFFFF) { + if (destsize == STORM_MAX_STR) { while (*source) { *destbuf = *source; diff --git a/storm/String.hpp b/storm/String.hpp index 4845d4f..679fcca 100644 --- a/storm/String.hpp +++ b/storm/String.hpp @@ -4,6 +4,9 @@ #include #include +#define STORM_MAX_PATH 260 +#define STORM_MAX_STR 0x7FFFFFFF + size_t SStrCopy(char* dest, const char* source, size_t destsize); uint32_t SStrHashHT(const char* string);