diff options
Diffstat (limited to 'src/MainWindow.cc')
-rw-r--r-- | src/MainWindow.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/MainWindow.cc b/src/MainWindow.cc index 67dfe37..46e083b 100644 --- a/src/MainWindow.cc +++ b/src/MainWindow.cc @@ -339,15 +339,15 @@ void MainWindow::onSampleTreeViewRowActivated(const Gtk::TreeModel::Path& path, } void MainWindow::updateInfo(const struct pa_server_info &i) { - char t[PA_SAMPLE_SNPRINT_MAX_LENGTH]; + char t[PA_SAMPLE_SPEC_SNPRINT_MAX]; serverNameLabel->set_text(i.server_name); serverVersionLabel->set_text(i.server_version); pa_sample_spec_snprint(t, sizeof(t), &i.sample_spec); defaultSampleTypeLabel->set_text(t); hostNameLabel->set_text(i.host_name); userNameLabel->set_text(i.user_name); - defaultSinkLabel->set_markup(*i.default_sink_name ? i.default_sink_name : "<i>not set</i>"); - defaultSourceLabel->set_markup(*i.default_source_name ? i.default_source_name: "<i>not set</i>"); + defaultSinkLabel->set_markup(i.default_sink_name ? i.default_sink_name : "<i>not set</i>"); + defaultSourceLabel->set_markup(i.default_source_name ? i.default_source_name: "<i>not set</i>"); } void MainWindow::showSuccess(const char *t) { |