Commit 208ffddc authored by Laurent Aimar's avatar Laurent Aimar

* ts: fixed EITEventFixString.

parent c18080c9
...@@ -2114,12 +2114,12 @@ static void DecodeMjd( int i_mjd, int *p_y, int *p_m, int *p_d ) ...@@ -2114,12 +2114,12 @@ static void DecodeMjd( int i_mjd, int *p_y, int *p_m, int *p_d )
} }
} }
#endif #endif
static void EITEventFixString( char *psz ) static void EITEventFixString( unsigned char *psz )
{ {
int i_len; int i_len;
/* Sometimes the first char isn't a normal char but designed /* Sometimes the first char isn't a normal char but designed
* caracters encoding, for now lets skip it */ * caracters encoding, for now lets skip it */
if( isalnum(psz[0]) ) if( psz[0] >= 0x20 )
return; return;
if( ( i_len = strlen( psz ) ) > 0 ) if( ( i_len = strlen( psz ) ) > 0 )
memmove( &psz[0], &psz[1], i_len ); /* Copy the \0 too */ memmove( &psz[0], &psz[1], i_len ); /* Copy the \0 too */
......
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