From 01c7fabd4a168e3d5457e432037da86404793b3d Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 20 Jan 2009 02:56:47 +0000 Subject: Added Pieces Library Manager and VRML export to the Linux version. git-svn-id: http://svn.leocad.org/tags/leocad-0.75@733 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/library.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/library.cpp') diff --git a/common/library.cpp b/common/library.cpp index f1f06cf..0df8c51 100755 --- a/common/library.cpp +++ b/common/library.cpp @@ -114,7 +114,7 @@ bool PiecesLibrary::Load (const char *libpath) // Load moved files reference. if (m_pMovedReference != NULL) free(m_pMovedReference); - m_pMovedReference = (char*)malloc(18*movedcount); + m_pMovedReference = (char*)malloc(18*(movedcount+1)); memset (m_pMovedReference, 0, 18*movedcount); m_nMovedCount = movedcount; -- cgit v1.2.3