diff --git a/crnlib/crn_vector.cpp b/crnlib/crn_vector.cpp index 479831c9..7fe13b91 100644 --- a/crnlib/crn_vector.cpp +++ b/crnlib/crn_vector.cpp @@ -34,11 +34,7 @@ bool elemental_vector::increase_capacity(uint min_new_capacity, bool grow_hint, return false; char buf[256]; -#ifdef _MSC_VER sprintf_s(buf, sizeof(buf), "vector: crnlib_realloc() failed allocating %u bytes", (uint)desired_size); -#else - sprintf(buf, "vector: crnlib_realloc() failed allocating %u bytes", (uint)desired_size); -#endif CRNLIB_FAIL(buf); } m_p = new_p; @@ -49,11 +45,7 @@ bool elemental_vector::increase_capacity(uint min_new_capacity, bool grow_hint, return false; char buf[256]; -#ifdef _MSC_VER sprintf_s(buf, sizeof(buf), "vector: crnlib_malloc() failed allocating %u bytes", (uint)desired_size); -#else - sprintf(buf, "vector: crnlib_malloc() failed allocating %u bytes", (uint)desired_size); -#endif CRNLIB_FAIL(buf); }