From d20b5bc62b2b2f3ded3875facff448b71cca72a3 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Sat, 4 May 2002 15:08:00 +0000 Subject: [PATCH] Fixed crash on long names in TwitName --- docs/notework.txt | 2 ++ golded3/gccfgg8.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/notework.txt b/docs/notework.txt index 8f34dda..71f3e80 100644 --- a/docs/notework.txt +++ b/docs/notework.txt @@ -12,6 +12,8 @@ ______________________________________________________________________ Notes for GoldED+ 1.1.5, /snapshot/ ______________________________________________________________________ +- Fixed crash on long names in TwitName. + - Fixed net/echomail.bss updating in Hudson/GoldBase. - Fixed reverse order sorting in 'F' criteria of AREALISTSORT (broken diff --git a/golded3/gccfgg8.cpp b/golded3/gccfgg8.cpp index af8941c..403a3c3 100644 --- a/golded3/gccfgg8.cpp +++ b/golded3/gccfgg8.cpp @@ -261,7 +261,7 @@ void CfgTwitname() { strbtrim(val); } } - strcpy(tn.name, val); + strxcpy(tn.name, val, sizeof(tn.name)); CFG->twitname.push_back(tn); }