Version: 1
-Previous: 742a1d661b743aaf9871c1b67e94abf5120fb8f7
-Head: 38bf8c7653d22d280109485b3adfbc1d799feecd
+Previous: 8881bf739283460218091be4d16e8e7abf273b4d
+Head: dfe3c8409e2e1fcc2fc11bd7f9287f1c46b36015
Applied:
lmc: b355854c79a1e446e87684a41663ad5aae258b73
lid: 1c005908ee6c257f6fa290df8ce8a45e968d07ab
acme_gid: 160551b2a4bed277f4c81b52ef33a184f43ca783
- range: 635f1521dbe9fd405d6429a48fb7bd990d312997
- refresh-temp: 38bf8c7653d22d280109485b3adfbc1d799feecd
+ range: dfe3c8409e2e1fcc2fc11bd7f9287f1c46b36015
Unapplied:
Hidden:
Bottom: 1ab5f7833d1baaba821d175e19964a67ad69afe5
-Top: 1ab5f7833d1baaba821d175e19964a67ad69afe5
+Top: 95be46d944a0b8ad21ebe86340c99c1691ee887f
Author: Sean Hefty <sean.hefty@intel.com>
Date: 2010-12-17 12:06:05 -0800
---
-
+diff --git a/src/parse.c b/src/parse.c
+index e90fb09..d1c820f 100644
+--- a/src/parse.c
++++ b/src/parse.c
+@@ -80,8 +80,15 @@ char **parse(char *args, int *count)
+ cpy = malloc(strlen(args) + 1);
+ strcpy(cpy, args);
+
+- token = strtok(cpy, "[");
+- next = strtok(NULL, "]");
++ if (args[0] == '[') {
++ cpy[0] = '\0';
++ token = cpy;
++ next = strtok(cpy + 1, "]");
++ } else {
++ token = strtok(cpy, "[");
++ next = strtok(NULL, "]");
++ }
++
+ if (!next) {
+ str_size = strlen(token) + 1;
+ str_buf = malloc(str_size);
+++ /dev/null
-Bottom: 1ab5f7833d1baaba821d175e19964a67ad69afe5
-Top: 95be46d944a0b8ad21ebe86340c99c1691ee887f
-Author: Sean Hefty <sean.hefty@intel.com>
-Date: 2010-12-17 12:07:36 -0800
-
-Refresh of range
-
----
-
-diff --git a/src/parse.c b/src/parse.c
-index e90fb09..d1c820f 100644
---- a/src/parse.c
-+++ b/src/parse.c
-@@ -80,8 +80,15 @@ char **parse(char *args, int *count)
- cpy = malloc(strlen(args) + 1);
- strcpy(cpy, args);
-
-- token = strtok(cpy, "[");
-- next = strtok(NULL, "]");
-+ if (args[0] == '[') {
-+ cpy[0] = '\0';
-+ token = cpy;
-+ next = strtok(cpy + 1, "]");
-+ } else {
-+ token = strtok(cpy, "[");
-+ next = strtok(NULL, "]");
-+ }
-+
- if (!next) {
- str_size = strlen(token) + 1;
- str_buf = malloc(str_size);