aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-06-07 23:21:32 -0400
committerTest_User <hax@andrewyu.org>2024-06-07 23:21:32 -0400
commit63f6501accb8c263e7d9890828210ec379f8a65a (patch)
treeaa7e62b39dfeb58097b33877cf3db2ba185ecc65 /main.c
parent5c9c4339ac97ffb9c66d9f3dd3a8285badd24d71 (diff)
downloadcoupserv-63f6501accb8c263e7d9890828210ec379f8a65a.tar.gz
coupserv-63f6501accb8c263e7d9890828210ec379f8a65a.zip
Fix an old parsing bug that's never actually triggered by inspircd
Diffstat (limited to '')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 323ea8e..cdfeada 100644
--- a/main.c
+++ b/main.c
@@ -317,8 +317,8 @@ int main(void) {
for (uint64_t i = offset + 1; i < msg_len; i++) {
if (full_msg.data[i] == ' ') {
found = 1;
+ source.len = i - offset - 1;
offset = i + 1;
- source.len = i - 1;
break;
}
}