On 11/07/16 13:09, Jan Synacek wrote:

In file included from ../lib/framework/frame.h:44:0,
                 from ../lib/framework/wzapp.h:24,
                 from frontend.cpp:27:
frontend.cpp: In function 'void startCampaignSelector()':
../lib/framework/string_ext.h:178:74: error: format not a string
literal and no format arguments [-Werror=format-security]
 #define ssprintf(dest, ...) snprintf((dest), sizeof(dest), __VA_ARGS__)

Could someone who understands g++ please advise how to fix this? I
don't quite understand why it doesn't work.

Nothing to do with __VA_ARGS__ at all.

A non-constant string is being passed to ssprintf as the format, which is a potential security risk depending on the source of the string, and the default Fedora compile flags therefore prohibit it.

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/
--
devel mailing list
devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org

Reply via email to