[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : luke
Repository : xara
Revision   : 1726
Date       : Tue Aug 29 11:58:28 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxOil/camview.cpp

Make sure the temporary buffer has space for a terminator (fixes BZ #1573)


Diff:
Index: Trunk/XaraLX/wxOil/camview.cpp
===================================================================
--- Trunk/XaraLX/wxOil/camview.cpp	(revision 1725)
+++ Trunk/XaraLX/wxOil/camview.cpp	(revision 1726)
@@ -5196,7 +5196,7 @@
 		{
 			// All the chars are bytes so try sticking them into a char array 
 			// and converting them with wxConvFileName
-			char* pBuf = (char*)CCMalloc(i);
+			char* pBuf = (char*)CCMalloc(i + 1);
 			if (pBuf)
 			{
 				i = 0;


Xara