[mythtv] Ticket #4422: when linking errors occur while loading plugins, the errors are not displayed correctly

Simon Kenyon simon at koala.ie
Sun Jan 6 12:14:59 UTC 2008


On Sat, 2008-01-05 at 13:31 -0500, Andrei Tanas wrote:
> > a) change sprintf to snprintf because there is no sprintf on mingw
> > b) include <stdio.h> to get the definition of snprintf()
> 
> There is sprintf() in MinGW (stdio.h), I would be surprised if it wasn't
> there.

i think it has been redefined into something else which is like:

sprintf_is_unsafe_and_not_to_be_used

that is not the exact define, but i'm running gentoo at the moment

anyway, the buffer is 512 long and so snprintf (which works) is a better
choice
--
simon



More information about the mythtv-dev mailing list