Browse Source

Fix a few compiler warnings

Signed-off-by: falkTX <falktx@falktx.com>
pull/1961/merge
falkTX 3 months ago
parent
commit
3d026cc091
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 4 additions and 3 deletions
  1. +1
    -1
      source/backend/engine/CarlaEngineOscSend.cpp
  2. +1
    -1
      source/frontend/dialogs/aboutdialog.cpp
  3. +2
    -1
      source/utils/CarlaString.hpp

+ 1
- 1
source/backend/engine/CarlaEngineOscSend.cpp View File

@@ -216,7 +216,7 @@ void CarlaEngineOsc::sendPluginProgramCount(const CarlaPluginPtr& plugin) const
CARLA_SAFE_ASSERT_RETURN(plugin != nullptr,);
carla_stdout("CarlaEngineOsc::sendPluginDataCount(%p)", plugin.get());

char targetPath[std::strlen(fControlDataTCP.path)+7];
char targetPath[std::strlen(fControlDataTCP.path)+8];
std::strcpy(targetPath, fControlDataTCP.path);
std::strcat(targetPath, "/pcount");
try_lo_send(fControlDataTCP.target, targetPath, "iii",


+ 1
- 1
source/frontend/dialogs/aboutdialog.cpp View File

@@ -28,7 +28,7 @@ AboutDialog::AboutDialog(QWidget* const parent,
"<br>Copyright (C) 2011-2025 falkTX<br>"
"").arg(CARLA_VERSION_STRING).arg(extraInfo));

if (ui.about->palette().color(QPalette::Background).blackF() < 0.5)
if (ui.about->palette().color(QPalette::Window).blackF() < 0.5)
{
ui.l_icons->setPixmap(QPixmap(":/bitmaps/carla_about_black.png"));
ui.ico_example_edit->setPixmap(QPixmap(":/bitmaps/button_file-black.png"));


+ 2
- 1
source/utils/CarlaString.hpp View File

@@ -758,13 +758,14 @@ public:
}

// we have some data ourselves, reallocate to add the new stuff
char* const newBuf = (char*)realloc(fBuffer, fBufferLen + strBufLen + 1);
char* const newBuf = (char*)realloc(fBufferAlloc ? fBuffer : nullptr, fBufferLen + strBufLen + 1);
CARLA_SAFE_ASSERT_RETURN(newBuf != nullptr, *this);

std::memcpy(newBuf + fBufferLen, strBuf, strBufLen + 1);

fBuffer = newBuf;
fBufferLen += strBufLen;
fBufferAlloc = true;

return *this;
}


Loading…
Cancel
Save