diff options
author | Test_User <hax@andrewyu.org> | 2024-03-15 18:09:52 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-03-15 18:09:52 -0400 |
commit | 6d8a3bd375f6cd240349fcf0e99ce4a48b9d1f38 (patch) | |
tree | ff4e4a597d83fe81f6e9235a4dce786aa8ee44df /main.c | |
parent | 8fef1ea4dc6076f74a47a087cf3936819172926e (diff) | |
download | c_coupserv-6d8a3bd375f6cd240349fcf0e99ce4a48b9d1f38.tar.gz c_coupserv-6d8a3bd375f6cd240349fcf0e99ce4a48b9d1f38.zip |
bug fixing
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -308,8 +308,8 @@ int main(void) { } struct string source; - if (full_msg.data[0] == ':') { - source.data = full_msg.data + 1; + if (full_msg.data[offset] == ':') { + source.data = full_msg.data + 1 + offset; found = 0; for (uint64_t i = offset + 1; i < msg_len; i++) { if (full_msg.data[i] == ' ') { @@ -325,7 +325,6 @@ int main(void) { } } else { source = (struct string){0}; - offset = 0; } while (offset < msg_len && full_msg.data[offset] == ' ') |