diff --git a/common/patches/rof.cpp b/common/patches/rof.cpp index 22414d6e5..0495935b1 100644 --- a/common/patches/rof.cpp +++ b/common/patches/rof.cpp @@ -3844,8 +3844,8 @@ namespace RoF PacketSize += strlen(emu->name); PacketSize += strlen(emu->lastName); - emu->title[0] = 0; - emu->suffix[0] = 0; + emu->title[31] = 0; + emu->suffix[31] = 0; if (strlen(emu->title)) PacketSize += strlen(emu->title) + 1; diff --git a/common/patches/rof2.cpp b/common/patches/rof2.cpp index 59c0258a9..9e0bd9c8a 100644 --- a/common/patches/rof2.cpp +++ b/common/patches/rof2.cpp @@ -3985,8 +3985,8 @@ namespace RoF2 PacketSize += strlen(emu->name); PacketSize += strlen(emu->lastName); - emu->title[0] = 0; - emu->suffix[0] = 0; + emu->title[31] = 0; + emu->suffix[31] = 0; if (strlen(emu->title)) PacketSize += strlen(emu->title) + 1;