[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : alex
Repository : xara
Revision : 1607
Date : Sat Jul 29 21:24:59 BST 2006
Changed paths:
M /Trunk/XaraLX/Kernel/ccfile.cpp
Avoid unitialized memory access on CCLexFile
Diff:
Index: Trunk/XaraLX/Kernel/ccfile.cpp
===================================================================
--- Trunk/XaraLX/Kernel/ccfile.cpp (revision 1606)
+++ Trunk/XaraLX/Kernel/ccfile.cpp (revision 1607)
@@ -5814,6 +5814,7 @@
{
// store the char we read
#if FALSE != wxUSE_UNICODE
+ Text[Off]=_T('?'); // in case it doesn't convert, we don't want unititalized memory
mbtowc( Text + Off, &Ch, 1 );
++Off;
#else
Xara