]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/mainframe.cpp
Wrap some buffers
[xonotic/netradiant.git] / radiant / mainframe.cpp
index b54ff8277f8344d536b75bd934e8d00342769c82..02c8c9b3a31a2befb17d0ca3add0a17f1b68ccf1 100644 (file)
@@ -40,6 +40,7 @@
 #include <ctime>
 
 #include <gdk/gdkkeysyms.h>
+#include <util/buffer.h>
 
 
 #include "cmdlib.h"
@@ -527,7 +528,7 @@ public:
 CLoadModule( const char* path ) : m_path( path ){
 }
 void operator()( const char* name ) const {
-       char fullname[1024];
+       auto fullname = u::buffer<1024>();
        ASSERT_MESSAGE( strlen( m_path ) + strlen( name ) < 1024, "" );
        strcpy( fullname, m_path );
        strcat( fullname, name );