diff --git a/src/musikcube/app/window/TransportWindow.cpp b/src/musikcube/app/window/TransportWindow.cpp index e97be6d27..3d1a0b1d0 100755 --- a/src/musikcube/app/window/TransportWindow.cpp +++ b/src/musikcube/app/window/TransportWindow.cpp @@ -363,7 +363,7 @@ size_t TransportWindow::WritePlayingFormat(WINDOW *w, size_t width) { metadataFieldToPosition[token->value] = Position(x, y, cols); ON(w, attr); - checked_wprintw(w, value.c_str()); + checked_wprintw(w, "%s", value.c_str()); OFF(w, attr); remaining -= cols; @@ -678,7 +678,7 @@ void TransportWindow::Update(TimeMode timeMode) { if (stopped && !this->buffering) { ON(c, disabled); - checked_wprintw(c, Strings.STOPPED.c_str()); + checked_wprintw(c, "%s", Strings.STOPPED.c_str()); displayCache.Reset(); OFF(c, disabled); } @@ -692,7 +692,7 @@ void TransportWindow::Update(TimeMode timeMode) { wmove(c, 0, shuffleOffset); Color const shuffleAttrs = this->playback.IsShuffled() ? gb : disabled; ON(c, shuffleAttrs); - checked_wprintw(c, shuffleLabel.c_str()); + checked_wprintw(c, "%s", shuffleLabel.c_str()); OFF(c, shuffleAttrs); this->shufflePos.Set(shuffleOffset, narrow_cast(shuffleWidth)); @@ -811,7 +811,7 @@ void TransportWindow::Update(TimeMode timeMode) { wmove(c, 1, 0); /* move cursor to the second line */ ON(c, volumeAttrs); - checked_wprintw(c, volume.c_str()); + checked_wprintw(c, "%s", volume.c_str()); OFF(c, volumeAttrs); if (replayGainEnabled) { @@ -834,7 +834,7 @@ void TransportWindow::Update(TimeMode timeMode) { ON(c, repeatAttrs); this->repeatPos.Set(getcurx(c), narrow_cast(u8cols(repeatModeLabel))); - checked_wprintw(c, repeatModeLabel.c_str()); + checked_wprintw(c, "%s", repeatModeLabel.c_str()); OFF(c, repeatAttrs); this->Invalidate(); diff --git a/src/musikcube/cursespp/DialogOverlay.cpp b/src/musikcube/cursespp/DialogOverlay.cpp index c2df1a899..b753b571c 100644 --- a/src/musikcube/cursespp/DialogOverlay.cpp +++ b/src/musikcube/cursespp/DialogOverlay.cpp @@ -226,7 +226,7 @@ void DialogOverlay::OnRedraw() { if (this->title.size()) { wmove(c, currentY, currentX); wattron(c, A_BOLD); - checked_wprintw(c, text::Ellipsize(this->title, this->width - 4).c_str()); + checked_wprintw(c, "%s", text::Ellipsize(this->title, this->width - 4).c_str()); wattroff(c, A_BOLD); currentY += 2; } @@ -234,7 +234,7 @@ void DialogOverlay::OnRedraw() { if (this->message.size()) { for (size_t i = 0; i < messageLines.size(); i++) { wmove(c, currentY, currentX); - checked_wprintw(c, this->messageLines.at(i).c_str()); + checked_wprintw(c, "%s", this->messageLines.at(i).c_str()); ++currentY; } } diff --git a/src/musikcube/cursespp/InputOverlay.cpp b/src/musikcube/cursespp/InputOverlay.cpp index 9cd6e03e5..ccbcb7a04 100644 --- a/src/musikcube/cursespp/InputOverlay.cpp +++ b/src/musikcube/cursespp/InputOverlay.cpp @@ -203,7 +203,7 @@ void InputOverlay::OnRedraw() { if (this->title.size()) { wmove(c, 0, 1); wattron(c, A_BOLD); - checked_wprintw(c, text::Align(this->title, text::AlignCenter, this->width - 4).c_str()); + checked_wprintw(c, "%s", text::Align(this->title, text::AlignCenter, this->width - 4).c_str()); wattroff(c, A_BOLD); } } diff --git a/src/musikcube/cursespp/ListOverlay.cpp b/src/musikcube/cursespp/ListOverlay.cpp index 82c8e9be8..e2dc3c22e 100644 --- a/src/musikcube/cursespp/ListOverlay.cpp +++ b/src/musikcube/cursespp/ListOverlay.cpp @@ -328,7 +328,7 @@ void ListOverlay::UpdateContents() { if (this->title.size()) { wmove(c, currentY, currentX); wattron(c, A_BOLD); - checked_wprintw(c, text::Align(this->title, text::AlignCenter, this->width - 4).c_str()); + checked_wprintw(c, "%s", text::Align(this->title, text::AlignCenter, this->width - 4).c_str()); wattroff(c, A_BOLD); currentY += 2; } diff --git a/src/musikcube/cursespp/ShortcutsWindow.cpp b/src/musikcube/cursespp/ShortcutsWindow.cpp index de1031dcb..cb2762a3a 100755 --- a/src/musikcube/cursespp/ShortcutsWindow.cpp +++ b/src/musikcube/cursespp/ShortcutsWindow.cpp @@ -236,7 +236,7 @@ void ShortcutsWindow::OnRedraw() { } wattron(c, keyAttrs); - checked_wprintw(c, key.c_str()); + checked_wprintw(c, "%s", key.c_str()); wattroff(c, keyAttrs); remaining -= len; @@ -252,7 +252,7 @@ void ShortcutsWindow::OnRedraw() { len = remaining; } - checked_wprintw(c, value.c_str()); + checked_wprintw(c, "%s", value.c_str()); remaining -= len; } } diff --git a/src/musikcube/cursespp/ToastOverlay.cpp b/src/musikcube/cursespp/ToastOverlay.cpp index 0143f3a78..0bfb1aeab 100644 --- a/src/musikcube/cursespp/ToastOverlay.cpp +++ b/src/musikcube/cursespp/ToastOverlay.cpp @@ -115,6 +115,6 @@ void ToastOverlay::OnRedraw() { for (int i = 0; i < (int) this->titleLines.size(); i++) { wmove(c, i, 1); - checked_wprintw(c, text::Ellipsize(this->titleLines[i], this->width - 4).c_str()); + checked_wprintw(c, "%s", text::Ellipsize(this->titleLines[i], this->width - 4).c_str()); } }