Commit c4aad5aa authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

subsusf: simplification

parent 495dbc7c
...@@ -1065,12 +1065,10 @@ static char *StripTags( char *psz_subtitle ) ...@@ -1065,12 +1065,10 @@ static char *StripTags( char *psz_subtitle )
psz_subtitle++; psz_subtitle++;
} }
*psz_text = '\0'; *psz_text++ = '\0';
char *psz = realloc( psz_text_start, strlen( psz_text_start ) + 1 ); char *psz = realloc( psz_text_start, psz_text - psz_text_start );
if( psz ) psz_text_start = psz; return likely(psz != NULL) ? psz : psz_text_start;
return psz_text_start;
} }
/* Turn a HTML subtitle, turn into a plain-text version, /* Turn a HTML subtitle, turn into a plain-text version,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment