From e47f9d95b010595fc856737bdf2c5cb08c6c3de9 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Tue, 24 Feb 2015 16:26:25 -0500 Subject: [PATCH] Fix title/suffix for RoF/RoF2 --- common/patches/rof.cpp | 4 ++-- common/patches/rof2.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;