diff options
author | mutantturkey <mutantturke@gmail.com> | 2012-07-23 11:26:42 -0400 |
---|---|---|
committer | mutantturkey <mutantturke@gmail.com> | 2012-07-23 11:26:42 -0400 |
commit | 9b8cad65431b1741ece63349a1f3a9075b36a75e (patch) | |
tree | 5c3cda4451a8483a1d884a921566938b501c3081 | |
parent | 8270fd8dacdaaea567fe168cc764b75b66298fae (diff) |
go back to declarin the size of temp
-rw-r--r-- | fly-tools/FlyTrackingMain.cpp | 4 |
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); } |