summaryrefslogtreecommitdiff
path: root/common/library.cpp
diff options
context:
space:
mode:
authorleo2009-01-20 02:56:47 +0000
committerleo2009-01-20 02:56:47 +0000
commit01c7fabd4a168e3d5457e432037da86404793b3d (patch)
tree1612b2de1413281957d4d22b455bdb72831646fe /common/library.cpp
parent39f41aa607a84a42c483a6356f06ff9d54c1450c (diff)
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
Diffstat (limited to 'common/library.cpp')
-rwxr-xr-xcommon/library.cpp2
1 files changed, 1 insertions, 1 deletions
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;