youkpan / skynetbot

Automatically exported from code.google.com/p/skynetbot
0 stars 0 forks source link

Skynet possible sendText bug #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In your onSendText callback you call:
BWAPI::Broodwar->sendText(text.c_str());

However it should be:
BWAPI::Broodwar->sendText("%s", text.c_str());

because of the % identifiers which you could type in, causing a crash.

Original issue reported on code.google.com by AHeinerm on 18 Dec 2013 at 9:46