1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Description: Fix compilation with '-Werror'
printf() should always be called with a literal format-string
Author: IOhannes m zmölnig
Origin: upstream
Forwarded: yes
Applied-Upstream: 647af068765b75867e3a28b4dd8991ab9ed47f7c
Last-Update: 2025-04-22
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- fst.orig/src/FstHost/FstHost.cpp
+++ fst/src/FstHost/FstHost.cpp
@@ -549,7 +549,7 @@
if(!vstmain)return post("'%s' was not loaded", filename);
AEffect*effect = vstmain(&dispatcher);
post("instantiated effect %p", effect);
- snprintf(effectname, 1024, filename);
+ snprintf(effectname, 1024, "%s", filename);
if(!effect)return post("unable to instantiate plugin from '%s'", filename);
post_aeffect(effect);
//dump_data(filename, effect, 160);
--- fst.orig/src/FstPlugin/FstPlugin.cpp
+++ fst/src/FstPlugin/FstPlugin.cpp
@@ -675,7 +675,7 @@
for(size_t i = 0; i<(SIZEOF(canDos)); i++) {
char buf[512] = {0};
char hostcode[512] = {0};
- snprintf(buf, 511, canDos[i]);
+ snprintf(buf, 511, "%s", canDos[i]);
buf[511]=0;
t_fstPtrInt res = dispatch(0, audioMasterCanDo, 0, 0, buf, 0);
if(*buf)
|