git repos / blockattack-game

commit c93f6381

sago007 · 2011-06-26 14:34
c93f63811e42dd3ee5863299c66fb78567177df8 patch · browse files
parent 593aeae41f1a4261c146920b7f43eacd9b4fa9b6

Went beyond array


git-svn-id: https://blockattack.svn.sourceforge.net/svnroot/blockattack/trunk@125 9d7177f8-192b-0410-8f35-a16a89829b06

Changed files

M source/code/main.cpp before
diff --git a/source/code/main.cpp b/source/code/main.cpp index 8e6345a..291512f 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -4596,7 +4596,7 @@ int main(int argc, char *argv[])
//cout << "Replay->Save clicked" << endl;
char buf[30];
for (int i=0;i<29;i++)buf[i]=' ';
- buf[30]=0;
+ buf[29]=0;
OpenDialogbox(200,100,buf);
for (int i=28;buf[i]==' ';i--)
buf[i]=0;
@@ -4622,7 +4622,7 @@ int main(int argc, char *argv[])
char buf[30];
for (int i=0;i<29;i++)buf[i]=' ';
- buf[30]=0;
+ buf[29]=0;
if (OpenReplayDialogbox(50,100,buf))
{
//cout << "Good way" << endl;