Bug#691107: Possible fix

2012-10-24 Thread Jesse Smith
On 12-10-24 04:33 AM, Fabian Greffrath wrote: > Am 23.10.2012 08:30, schrieb Ansgar Burchardt: >> I think the real problem is in menucontent.h. The MENUENTRY variables >> are declared in a "if" block and are no longer valid outside the block, >> however mainMenu.entries ("opts" in atanks.cpp:1037)

Bug#691107: Possible fix

2012-10-24 Thread Fabian Greffrath
Am 23.10.2012 08:30, schrieb Ansgar Burchardt: I think the real problem is in menucontent.h. The MENUENTRY variables are declared in a "if" block and are no longer valid outside the block, however mainMenu.entries ("opts" in atanks.cpp:1037) still has a pointer to them... Declaring them all as

Bug#691107: Possible fix

2012-10-23 Thread Jesse Smith
On 12-10-23 03:30 AM, Ansgar Burchardt wrote: > I think the real problem is in menucontent.h. The MENUENTRY variables > are declared in a "if" block and are no longer valid outside the block, > however mainMenu.entries ("opts" in atanks.cpp:1037) still has a pointer > to them... > > Ansgar > Th

Bug#691107: Possible fix

2012-10-22 Thread Fabian Greffrath
Am 22.10.2012 19:33, schrieb Jesse Smith: I believe I have found the problem and (I hope) a fix. Sorry for spamming everyone's inbox today. Never mind, your work is appreciated! Attached I've included a patch. Please apply it to src/atanks.cpp and let me know if it works. Assuming this fixes

Bug#691107: Possible fix

2012-10-22 Thread Ansgar Burchardt
Jesse Smith writes: > I believe I have found the problem and (I hope) a fix. Sorry for > spamming everyone's inbox today. > > The problem seems to stem from the strcpy() command overflowing when > copying one character into a two-character string. It seems as though > GCC is treating the character

Bug#691107: Possible fix

2012-10-22 Thread Jesse Smith
I believe I have found the problem and (I hope) a fix. Sorry for spamming everyone's inbox today. The problem seems to stem from the strcpy() command overflowing when copying one character into a two-character string. It seems as though GCC is treating the characters in the source string as being