Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2007-07-30 13:58:19 -0400
committerAndrew Niefer2007-07-30 13:58:19 -0400
commitd360017933fc0b2985e37eafd455a4d8e15878d7 (patch)
tree4905a6cebfa0d73719bce497516240b3c1fb4888 /bundles/org.eclipse.equinox.executable/library/eclipseUtil.c
parentf675cae551d42599536b7ff1532a953d53df3e9e (diff)
downloadrt.equinox.framework-d360017933fc0b2985e37eafd455a4d8e15878d7.tar.gz
rt.equinox.framework-d360017933fc0b2985e37eafd455a4d8e15878d7.tar.xz
rt.equinox.framework-d360017933fc0b2985e37eafd455a4d8e15878d7.zip
bug 196883
Diffstat (limited to 'bundles/org.eclipse.equinox.executable/library/eclipseUtil.c')
-rw-r--r--bundles/org.eclipse.equinox.executable/library/eclipseUtil.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.executable/library/eclipseUtil.c b/bundles/org.eclipse.equinox.executable/library/eclipseUtil.c
index 645edea85..649814558 100644
--- a/bundles/org.eclipse.equinox.executable/library/eclipseUtil.c
+++ b/bundles/org.eclipse.equinox.executable/library/eclipseUtil.c
@@ -146,8 +146,8 @@ _TCHAR* checkPath( _TCHAR* path, _TCHAR* programDir, int reverseOrder )
_TCHAR * checkPathList( _TCHAR* pathList, _TCHAR* programDir, int reverseOrder) {
_TCHAR * c1, *c2;
_TCHAR * checked, *result;
- int checkedLength = 0, resultLength = 0;
- int bufferLength = _tcslen(pathList);
+ size_t checkedLength = 0, resultLength = 0;
+ size_t bufferLength = _tcslen(pathList);
result = malloc(bufferLength * sizeof(_TCHAR));
c1 = pathList;
@@ -183,7 +183,8 @@ _TCHAR * checkPathList( _TCHAR* pathList, _TCHAR* programDir, int reverseOrder)
_TCHAR * concatStrings(_TCHAR** strs) {
_TCHAR * result;
- int i = -1, length = 0;
+ int i = -1;
+ size_t length = 0;
/* first count how large a buffer we need */
while( strs[++i] != NULL) {
length += _tcslen(strs[i]);

Back to the top