summaryrefslogtreecommitdiff
path: root/functions.c
diff options
context:
space:
mode:
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
}