From d88496f07bab09728572643d15cf86c7c7606bbc Mon Sep 17 00:00:00 2001
From: Arne Schwabe <arne@rfc2549.org>
Date: Sun, 1 Jul 2012 21:08:17 +0200
Subject: Correct error message for number of arguments

---
 src/de/blinkt/openvpn/ConfigParser.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/de/blinkt/openvpn/ConfigParser.java b/src/de/blinkt/openvpn/ConfigParser.java
index 913fda24..44af2cdc 100644
--- a/src/de/blinkt/openvpn/ConfigParser.java
+++ b/src/de/blinkt/openvpn/ConfigParser.java
@@ -494,7 +494,7 @@ public class ConfigParser {
 
 			if(optionline.size()< (minarg+1) || optionline.size() > maxarg+1) {
 				String err = String.format("Option %s has %d parameters, expected between %d and %d",
-						option,args.size()-1,minarg,maxarg );
+						option,optionline.size()-1,minarg,maxarg );
 				throw new ConfigParseError(err);
 			}
 		options.remove(option);
-- 
cgit v1.2.3