exif strings were not trimmed correctly

drop_tail() missed the final "()"
This commit is contained in:
John Cupitt 2018-08-28 11:08:49 +01:00
parent f725d7efab
commit 8891d6dc29

View File

@ -811,8 +811,8 @@ drop_tail( const char *data )
p = str + strlen( str );
if( p > str &&
*(p = g_utf8_prev_char( p )) == ')' &&
(p = g_utf8_strrchr( p, -1, (gunichar) '(')) &&
*g_utf8_prev_char( p ) == ')' &&
(p = g_utf8_strrchr( str, -1, (gunichar) '(')) &&
p > str &&
*(p = g_utf8_prev_char( p )) == ' ' )
*p = '\0';