Bug#643417: libccscript3: FTBFS: compiler.cpp:1147:38: error: format not a string literal and no format arguments [-Werror=format-security]

Ilya Barygin barygin at gmail.com
Sun Oct 30 14:43:38 UTC 2011


tags 643417 patch
thanks

Here's a patch:

--- libccscript3-1.1.7.orig/src/compiler.cpp
+++ libccscript3-1.1.7/src/compiler.cpp
@@ -1144,7 +1144,7 @@
                                continue;

                        if(!strchr(token, ':')) {
-                               snprintf(temp, sizeof(temp), name);
+                               snprintf(temp, sizeof(temp), "%s", name);
                                cp = strchr(temp, ':');
                                if(cp)
                                        *cp = 0;
--- libccscript3-1.1.7.orig/modules/property.cpp
+++ libccscript3-1.1.7/modules/property.cpp
@@ -380,7 +380,7 @@
                        goto unlock;

                sym->type = symORIGINAL;
-               snprintf(sym->data, sym->size + 1, ep);
+               snprintf(sym->data, sym->size + 1, "%s", ep);
 unlock:
                release();
                Thread::yield();





More information about the Pkg-voip-maintainers mailing list