mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-25 12:23:59 +00:00
char pointer misconception for newline characters
This commit is contained in:
parent
7212d6848a
commit
baa70a104a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user