diff options
author | jstebbins <[email protected]> | 2012-06-08 20:38:40 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-06-08 20:38:40 +0000 |
commit | 54b5378281d7a540e5456abddb9ee1673f4ee18b (patch) | |
tree | 87d00f80203c23f2c4bcaa6979314d663f7e9d00 /gtk | |
parent | a9763abcfad56b611a2bc9fff298e7f97945c954 (diff) |
LinGui: fix crash when dvd volume id has non-ascii characters
The iso9660 spec says the volume id must only be composed of 0-9, A-Z, and _.
But dvd authors seem to take liberties with the character set. Certain
non-ascii character sequences cause a crash in the glib function
g_markup_escape_text(). So force all characters into the standard ascii range.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4724 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/hb-backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 2594d3d9a..46898b9c8 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -5509,7 +5509,7 @@ sanitize_volname(gchar *name) b++; break; default: - *a = *b; + *a = *b & 0x7f; a++; b++; break; } |