From 61f9c53fb58f5668174d0985a75197e8ca74de1b Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Fri, 10 Apr 2015 15:04:10 +0200 Subject: Fix trailing \n removal --- src/mot-encoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mot-encoder.cpp') diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp index 1801d78..e0be054 100644 --- a/src/mot-encoder.cpp +++ b/src/mot-encoder.cpp @@ -894,7 +894,7 @@ void writeDLS(int output_fd, const char* dls_file, int padlen, uint8_t charset) while ( endp > dlstext && (*endp == '\0' || *endp == '\n')) { if (*endp == '\n') { - *endp == '\0'; + *endp = '\0'; } endp--; } -- cgit v1.2.3