From baa70a104af1e2f75e07e68f23e8cffc97655cac Mon Sep 17 00:00:00 2001 From: Diptanshu8 Date: Thu, 16 Mar 2017 16:09:06 +0530 Subject: [PATCH] char pointer misconception for newline characters --- src/lib_ccx/matroska.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_ccx/matroska.c b/src/lib_ccx/matroska.c index 7b681ec7..fbbfd469 100644 --- a/src/lib_ccx/matroska.c +++ b/src/lib_ccx/matroska.c @@ -798,7 +798,7 @@ void save_sub_track(struct matroska_ctx* mkv_ctx, struct matroska_sub_track* tra write(desc, timestamp_end, strlen(timestamp_start)); write(desc, "\n", 1); int size=0; - while (sentence->text+size=='\n' || sentence->text+size=='\r' ) + while (*(sentence->text+size)=='\n' || *(sentence->text+size)=='\r' ) size++; write(desc, sentence->text+size, sentence->text_size-size); write(desc, "\n\n", 2);