X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fmru.cpp;h=8e287e814855b2e6a2ec85dafec4db300e41fb0a;hb=550b552a0b1912ac0ef62ffc611e23860749df50;hp=916ea8422bf080c2d09625e0392b9a0c66d76804;hpb=a3d27eedb7107d7dd964fcc9d25c6464e3280b98;p=xonotic%2Fnetradiant.git diff --git a/radiant/mru.cpp b/radiant/mru.cpp index 916ea842..8e287e81 100644 --- a/radiant/mru.cpp +++ b/radiant/mru.cpp @@ -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 );