summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorleo2011-08-30 23:15:18 +0000
committerleo2011-08-30 23:15:18 +0000
commitc0c37e54a521b8d8da8d1d3c07451e483e41491f (patch)
tree06d8e272a43459ce91df9bf8c2b9f6118456beb8 /win
parent6387de22a4cc4a6ae69b7eb932d6f14de26272ff (diff)
Fixed buffer overflow errors caused by long file names.
git-svn-id: http://svn.leocad.org/branches/leocad-0.75@981 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win')
-rw-r--r--win/Piecebar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/Piecebar.cpp b/win/Piecebar.cpp
index 6c949cd..87e76ae 100644
--- a/win/Piecebar.cpp
+++ b/win/Piecebar.cpp
@@ -830,7 +830,7 @@ void CPiecesBar::SelectPiece(const char* Category, PieceInfo* Info)
PieceInfo* Parent;
// Find the parent of this patterned piece and expand it.
- char ParentName[9];
+ char ParentName[LC_PIECE_NAME_LEN];
strcpy(ParentName, Info->m_strName);
*strchr(ParentName, 'P') = '\0';