summaryrefslogtreecommitdiff
path: root/functions.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-04-19 02:15:41 +0200
committerLuke Bratch <luke@bratch.co.uk>2019-04-19 02:15:41 +0200
commitf4070050375a621d4297e0629c0072519cdf5d2d (patch)
tree7daecca434443eaeef32700be0d97feaaaa54021 /functions.c
parentfdbbc1afcec71c7a447d3fba98db2896289dd7e0 (diff)
Lots and lots of refactoring and comments work in preparation for more actual IRC/bouncer functionality
Diffstat (limited to 'functions.c')
-rw-r--r--functions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions.c b/functions.c
index 73302b8..97f8629 100644
--- a/functions.c
+++ b/functions.c
@@ -46,7 +46,7 @@ void appendcrlf(char *string) {
}
int startlen = strlen(string);
- string[startlen] = '\r';
- string[startlen + 1] = '\n';
- string[startlen + 2] = '\0';
+ string[startlen] = '\r'; // Add CR
+ string[startlen + 1] = '\n'; // Add LF
+ string[startlen + 2] = '\0'; // Finish with null terminator
}