diff options
author | Test_User <hax@andrewyu.org> | 2023-08-10 01:52:38 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2023-08-10 01:52:57 -0400 |
commit | c58679ab1055fc48e31ebc661d38f470bdec3142 (patch) | |
tree | 4c865b7bdce1eee5e2f9c8ea9395f8b4c5aa95bf /tls.c | |
parent | 031d6a3d88c714cd11884e73248f0c24090d50e1 (diff) | |
download | c_coupserv-c58679ab1055fc48e31ebc661d38f470bdec3142.tar.gz c_coupserv-c58679ab1055fc48e31ebc661d38f470bdec3142.zip |
Fix a potential issue
Diffstat (limited to 'tls.c')
-rw-r--r-- | tls.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -106,7 +106,7 @@ ssize_t SEND(struct string msg) { WRITES(1, msg); - if (msg.data[msg.len - 1] == '\n') { + if (msg.len == 0 || msg.data[msg.len - 1] == '\n') { printprefix = 1; #if COLORIZE WRITES(1, STRING("\x1b[0m\n")); |