Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2010-08-10 15:43:00 -0400
committerAndrew Niefer2010-08-10 15:43:00 -0400
commit156376585e76a8a4501bf23b8a022b4c8c92936a (patch)
tree11146e6aa3d2cb60e3df7421bc957e6f649eb8d9
parent64c805237221b22f719ff5b9786648dc0bb5475b (diff)
downloadrt.equinox.framework-156376585e76a8a4501bf23b8a022b4c8c92936a.tar.gz
rt.equinox.framework-156376585e76a8a4501bf23b8a022b4c8c92936a.tar.xz
rt.equinox.framework-156376585e76a8a4501bf23b8a022b4c8c92936a.zip
bug 315939 - crash in formatVmCommandMsg
-rw-r--r--bundles/org.eclipse.equinox.executable/library/eclipse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.executable/library/eclipse.c b/bundles/org.eclipse.equinox.executable/library/eclipse.c
index cab97bd1f..bec693c48 100644
--- a/bundles/org.eclipse.equinox.executable/library/eclipse.c
+++ b/bundles/org.eclipse.equinox.executable/library/eclipse.c
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -1003,7 +1003,7 @@ static _TCHAR* formatVmCommandMsg( _TCHAR* args[], _TCHAR* vmArgs[], _TCHAR* pr
while(list != NULL) {
for (index = 0; list[index] != NULL; index++)
{
- if (list[index][0] == _T_ECLIPSE('-') && *(ch-1) == _T_ECLIPSE(' '))
+ if (ch != message && list[index][0] == _T_ECLIPSE('-') && *(ch-1) == _T_ECLIPSE(' '))
*(ch-1) = _T_ECLIPSE('\n');
_tcscpy( ch, list[index] );
ch += _tcslen( list[index] );

Back to the top