summary refs log tree commit diff
path: root/state.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-23 03:00:00 -0400
committerJune McEnroe <june@causal.agency>2019-10-23 03:00:00 -0400
commite4f6fad70dc25c80f3c11ee52d83ea37b20620e9 (patch)
treecd036f0149cc737bcf1fa25487fcbba575404b3d /state.c
parentAdd dynamic poll list (diff)
downloadpounce-e4f6fad70dc25c80f3c11ee52d83ea37b20620e9.tar.gz
pounce-e4f6fad70dc25c80f3c11ee52d83ea37b20620e9.zip
Fix rest parsing
Diffstat (limited to '')
-rw-r--r--state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/state.c b/state.c
index da777da..ecbf368 100644
--- a/state.c
+++ b/state.c
@@ -136,7 +136,7 @@ void stateParse(char *line) {
 	cmd.name = strsep(&line, " ");
 	for (size_t i = 0; line && i < ParamCap; ++i) {
 		if (line[0] == ':') {
-			cmd.params[i] = line;
+			cmd.params[i] = &line[1];
 			break;
 		}
 		cmd.params[i] = strsep(&line, " ");