diff --git a/games/asteroids.cpp b/games/asteroids.cpp index a5e7a5e8..4378aca6 100644 --- a/games/asteroids.cpp +++ b/games/asteroids.cpp @@ -1083,7 +1083,7 @@ char* GetCurrentVideoMode() using namespace Maxsi; extern "C" bool ReadParamString(const char* str, ...) { - if ( String::Seek(str, '\n') ) { errno = EINVAL; } + if ( strchr(str, '\n') ) { errno = EINVAL; } const char* keyname; va_list args; while ( *str ) diff --git a/libmaxsi/readparamstring.cpp b/libmaxsi/readparamstring.cpp index 32af6017..5874f57e 100644 --- a/libmaxsi/readparamstring.cpp +++ b/libmaxsi/readparamstring.cpp @@ -32,7 +32,7 @@ using namespace Maxsi; extern "C" bool ReadParamString(const char* str, ...) { - if ( String::Seek(str, '\n') ) { errno = EINVAL; } + if ( strchr(str, '\n') ) { errno = EINVAL; } const char* keyname; va_list args; while ( *str ) diff --git a/sortix/video.cpp b/sortix/video.cpp index e40bc6bd..4c327aa1 100644 --- a/sortix/video.cpp +++ b/sortix/video.cpp @@ -37,7 +37,7 @@ namespace Sortix { bool ReadParamString(const char* str, ...) { - if ( String::Seek(str, '\n') ) { errno = EINVAL; } + if ( strchr(str, '\n') ) { errno = EINVAL; } const char* keyname; va_list args; while ( *str )