Hi all,
After having spent a lot of time to understand why some of my queries “Mysql” did not work on Android, while it works very well on Pc, Mac, linux. I discovered this:
“vsnprintf” does not return -1 if n is inssufisant but the numbe
r of characters it would, unlike “_vsnwprintf”
String::formatted Line 1872
#elif JUCE_ANDROID
HeapBlock temp (bufferSize);
const int num = (int) vsnprintf (temp.getData (), bufferSize - 1, pf.toUTF8 (), args);
#else
For test I have added this and it works:
#elif JUCE_ANDROID
int num = (int) vsnprintf (temp.getData (), bufferSize - 1, pf.toUTF8 (), args);
If (num> bufferSize-1)
Num = -1;
#else
Si sa peut aider quelqu’un…
Sorry for my English