Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Fix/Gui] Change the string format operation for language - name.

This prevents a possible crash while formatting the lang-name string for presentation in the audio dialog.
  • Loading branch information...
commit 50978621fe7d283b187500239ced6eb0ae9f0f6d 1 parent a83ee99
@ace20022 ace20022 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/video/dialogs/GUIDialogAudioSubtitleSettings.cpp
View
4 xbmc/video/dialogs/GUIDialogAudioSubtitleSettings.cpp
@@ -178,7 +178,7 @@ void CGUIDialogAudioSubtitleSettings::AddAudioStreams(unsigned int id)
else
strItem.Format("%s - %s", strLanguage.c_str(), info.name.c_str());
- strItem.Format("%s (%i/%i)", strItem.c_str(), i + 1, (int)setting.max + 1);
+ strItem.AppendFormat(" (%i/%i)", i + 1, (int)setting.max + 1);
setting.entry.push_back(make_pair(setting.entry.size(), strItem));
}
@@ -224,7 +224,7 @@ void CGUIDialogAudioSubtitleSettings::AddSubtitleStreams(unsigned int id)
else
strItem.Format("%s - %s", strLanguage.c_str(), info.name.c_str());
- strItem.Format("%s (%i/%i)", strItem.c_str(), i + 1, (int)setting.max + 1);
+ strItem.AppendFormat(" (%i/%i)", i + 1, (int)setting.max + 1);
setting.entry.push_back(make_pair(setting.entry.size(), strItem));
}
Please sign in to comment.
Something went wrong with that request. Please try again.