Mercurial > projects > dwt-win
diff dwt/widgets/FileDialog.d @ 186:ee3ee677f5fc
Fix several string convertion indexing errors, thanks Zhiguang Liang for the fixes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 10 Mar 2008 17:00:00 +0100 |
parents | 25f88bf5a6df |
children | ab60f3309436 |
line wrap: on
line diff
--- a/dwt/widgets/FileDialog.d Mon Mar 10 16:56:34 2008 +0100 +++ b/dwt/widgets/FileDialog.d Mon Mar 10 17:00:00 2008 +0100 @@ -383,7 +383,7 @@ do { int end = start; while (end < buffer.length && buffer[end] !is 0) end++; - char[] string = TCHARsToStr( buffer[ start .. end - start ] ); + char[] string = TCHARsToStr( buffer[ start .. end ] ); start = end; if (count is fileNames.length) { char[] [] newFileNames = new char[][]( fileNames.length + 4 );