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



commit ed367a99abbcd87090eeacf49fbabffcff573521
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]