Laccolith / skynet

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

Skynet possible sendText bug #7

Closed GoogleCodeExporter closed 6 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