Gah, finalized the revised ILibrarySys::GetFileExtension() code

--HG--
branch : sourcemod-1.0.x
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.0.x%402077
This commit is contained in:
Scott Ehlert 2008-04-17 09:28:27 +00:00
parent 00b81f343a
commit 1a21832cbb

View File

@ -352,7 +352,7 @@ size_t LibrarySystem::PathFormat(char *buffer, size_t len, const char *fmt, ...)
const char *LibrarySystem::GetFileExtension(const char *filename)
{
size_t len, end, i;
size_t len, end;
len = strlen(filename);
@ -364,7 +364,7 @@ const char *LibrarySystem::GetFileExtension(const char *filename)
end = len - 1;
for (i = end; i <= end; i--)
for (size_t i = end; i <= end; i--)
{
if (filename[i] == PLATFORM_SEP_CHAR || filename[i] == PLATFORM_SEP_ALTCHAR)
{