[gnome-terminal/gsettings] client: Fix off-by-one in arg counting before -- argument
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/gsettings] client: Fix off-by-one in arg counting before -- argument
- Date: Mon, 16 Apr 2012 11:08:36 +0000 (UTC)
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]