]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/mru.cpp
Implement buffer operations
[xonotic/netradiant.git] / radiant / mru.cpp
index 916ea8422bf080c2d09625e0392b9a0c66d76804..8e287e814855b2e6a2ec85dafec4db300e41fb0a 100644 (file)
@@ -144,7 +144,7 @@ void MRU_AddWidget( GtkMenuItem *widget, std::size_t pos ){
 
 void MRU_Activate( std::size_t index ){
        auto text = u::buffer<1024>();
-       strcpy( text, MRU_GetText( index ) );
+       text.copy( MRU_GetText( index ) );
 
        if ( file_readable( text ) ) { //\todo Test 'map load succeeds' instead of 'file is readable'.
                MRU_AddFile( text );