Skip to content

Commit

Permalink
tray-monitor: Replace char[] with a std::vector
Browse files Browse the repository at this point in the history
  • Loading branch information
arogge committed Nov 13, 2019
1 parent 9685acb commit 451bd90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/qt-tray-monitor/tray-monitor.cc
Expand Up @@ -44,8 +44,8 @@ static QCoreApplication* app = nullptr;

static void usage()
{
char copyright[500];
kBareosVersionStrings.FormatCopyright(copyright, 500, 2004);
std::vector<char> copyright(1024);
kBareosVersionStrings.FormatCopyright(copyright.data(), copyright.size(), 2004);
QString out = QString(
_("%1"
"Usage: tray-monitor [options]\n"
Expand All @@ -58,7 +58,7 @@ static void usage()
" -xs print configuration file schema in JSON format "
"and exit\n"
" -? print this message.\n"
"\n")).arg(copyright);
"\n")).arg(copyright.data());

#if HAVE_WIN32
QMessageBox::information(0, "Help", out);
Expand Down

0 comments on commit 451bd90

Please sign in to comment.