diff options
| author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-15 19:08:07 +0200 |
|---|---|---|
| committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-15 19:08:07 +0200 |
| commit | f035cd92a4d75858606dd6dd41105fb914adcf31 (patch) | |
| tree | 076045545e65fe51a2fd4e4e04a0cde6b43f177b /src/command.c | |
| parent | minor refactoring (diff) | |
| download | cimple-f035cd92a4d75858606dd6dd41105fb914adcf31.tar.gz cimple-f035cd92a4d75858606dd6dd41105fb914adcf31.zip | |
msg: strings, not words
Diffstat (limited to 'src/command.c')
| -rw-r--r-- | src/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c index 581b319..55d60da 100644 --- a/src/command.c +++ b/src/command.c @@ -106,7 +106,7 @@ void cmd_dispatcher_destroy(struct cmd_dispatcher *dispatcher) int cmd_dispatcher_handle(const struct cmd_dispatcher *dispatcher, const struct msg *command, struct msg **result) { - const char *actual_cmd = msg_get_first_word(command); + const char *actual_cmd = msg_get_first_string(command); for (size_t i = 0; i < dispatcher->numof_cmds; ++i) { struct cmd_desc *cmd = &dispatcher->cmds[i]; |
