From fd3acc86af45b22ffabce4eb432b48d376035bbd Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 6 Jul 2011 14:15:51 +0000 Subject: [PATCH] Small indexes fix Monotone-Parent: a7e4557022d0aae7997d7c7b65b38c077004cf94 Monotone-Revision: 980bdf3533fa9e08756ddec4c168f1f2b3ef31d2 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2011-07-06T14:15:51 Monotone-Branch: ca.inverse.sogo --- Tools/SOGoToolUserPreferences.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools/SOGoToolUserPreferences.m b/Tools/SOGoToolUserPreferences.m index 980046303..dd85dfaa8 100644 --- a/Tools/SOGoToolUserPreferences.m +++ b/Tools/SOGoToolUserPreferences.m @@ -169,14 +169,14 @@ typedef enum authpwd = @""; value = @""; - if (max > 5) + if (max > 4) { r = [[arguments objectAtIndex: 3] rangeOfString: @":"]; authname = [[arguments objectAtIndex: 3] substringToIndex: r.location]; authpwd = [[arguments objectAtIndex: 3] substringFromIndex: r.location+1]; key = [arguments objectAtIndex: 4]; - if (max > 6) + if (max > 5) value = [arguments objectAtIndex: 5]; } else @@ -223,7 +223,7 @@ typedef enum [source setObject: o forKey: key]; } else - NSLog(@"Invalid JSON input - no changes performed in the database."); + NSLog(@"Invalid JSON input - no changes performed in the database. The supplied value was: %@", value); } [source synchronize];