diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 03cd19f07b34b2d71ed78a8b9c368c75de00fc31
parent 8842cdf842e4b201c5d411efca8f37776941d0ee
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Fri, 21 Jun 2024 21:38:28 +0200

feat(utils): fix multi-char constant warning

Diffstat:
Msrc/utils.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/utils.c b/src/utils.c @@ -106,7 +106,8 @@ char* fold(const char* str) { // break lines after 75 chars // split between any two characters by inserting a CRLF // immediately followed by a white space character - buf[bufl-2] = '\r\n'; + buf[bufl-2] = '\r'; + buf[bufl-1] = '\n'; escch = ' '; esc = true; continue;