]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/mainframe.cpp
Implement buffer operations
[xonotic/netradiant.git] / radiant / mainframe.cpp
index 02c8c9b3a31a2befb17d0ca3add0a17f1b68ccf1..de092b8431abccb945b0dbf10065ecbe6b36f19a 100644 (file)
@@ -530,8 +530,8 @@ CLoadModule( const char* path ) : m_path( path ){
 void operator()( const char* name ) const {
        auto fullname = u::buffer<1024>();
        ASSERT_MESSAGE( strlen( m_path ) + strlen( name ) < 1024, "" );
-       strcpy( fullname, m_path );
-       strcat( fullname, name );
+       fullname.copy(m_path);
+       strcat( fullname.mut(), name );
        globalOutputStream() << "Found '" << fullname << "'\n";
        GlobalModuleServer_loadModule( fullname );
 }