From e079daa6cc60114ecb940d2c4dc2d06963d05000 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 26 Aug 2009 07:52:35 +0000 Subject: [PATCH] * Main.cs: * Main.cs: Fixed a potential index out of range exception when setting dirName (output path). --- Source/Bind/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Bind/Main.cs b/Source/Bind/Main.cs index 491ac393..ff1f9aad 100644 --- a/Source/Bind/Main.cs +++ b/Source/Bind/Main.cs @@ -88,7 +88,7 @@ namespace Bind mode = GeneratorMode.CL10; else throw new NotImplementedException(); - if (b.Length > 1) + if (b.Length > 2) dirName = b[2]; break; case "namespace":