aboutsummaryrefslogtreecommitdiff
path: root/fly-tools
diff options
context:
space:
mode:
Diffstat (limited to 'fly-tools')
-rw-r--r--fly-tools/FlyTrackingMain.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fly-tools/FlyTrackingMain.cpp b/fly-tools/FlyTrackingMain.cpp
index c334e58..aa6a2b6 100644
--- a/fly-tools/FlyTrackingMain.cpp
+++ b/fly-tools/FlyTrackingMain.cpp
@@ -663,7 +663,7 @@ void putPixel(Image* maskImage, int x, int y, int color) {
cout << "Hit the male object at "<<x<<","<<y<<endl;
} else {
- char *temp;
+ char temp[128];
sprintf(temp, "Going through (%d,%d) \n ", x, y);
vlog(temp);
pair<int,int> t(x,y);
@@ -2297,7 +2297,7 @@ int hitTheFly(Image* maskImage, int &intersectX, int &intersectY) {
return 2;
}
else {
- char *temp;
+ char temp[128];
sprintf(temp, "Going through (%d,%d) \n ", x, y);
vlog(temp);
}