From e4f6fad70dc25c80f3c11ee52d83ea37b20620e9 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 23 Oct 2019 03:00:00 -0400 Subject: Fix rest parsing --- state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, " "); -- cgit 1.4.1