[gnome-terminal/gsettings] client: Fix off-by-one in arg counting before -- argument



commit 35db66d9b1ab9b0eafae73fd0de4295820655f34
Author: Christian Persch <chpe gnome org>
Date:   Sun Apr 15 13:21:21 2012 +0200

    client: Fix off-by-one in arg counting before -- argument

 src/client.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/client.c b/src/client.c
index 08f2e9e..3f96b44 100644
--- a/src/client.c
+++ b/src/client.c
@@ -480,7 +480,7 @@ parse_arguments (int *argcp,
       data->exec_argc = argc - (i + 1);
 
       /* Truncate argv */
-      *argcp = argc = i - 1;
+      *argcp = argc = i;
       break;
     }
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]