[Cbc] Format string "error"
Haroldo Gambini Santos
haroldo.santos at gmail.com
Sat Mar 26 14:07:13 EDT 2016
Dear Cristoph,
It seems that this is just a Warning.
You are probably compiling with *-Werror*
Just don't insert this option while compiling and the build process will
be fine.
On 26-03-2016 13:48, Christoph Cullmann wrote:
> Hi,
>
> current clang++ from xcode will refuse to compile libcbc because of:
>
> CoinMessageHandler.cpp:834:26: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
> sprintf(messageOut_,format_+2);
>
> guess you want to use their either
>
> sprintf(messageOut_,"%s",format_+2);
>
> or avoid sprintf and just do some other dumb strcopy there.
>
> Greetings
> Christoph
>
--
==================================================
Haroldo Gambini Santos
D.Sc, Computer Science
Universidade Federal de Ouro Preto
http://www.decom.ufop.br/haroldo/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20160326/a24cf3d7/attachment.html>
More information about the Cbc
mailing list