Okay. I'm not sure how similar this is to the original patch, but the
following three line patch takes care of the issue.

There may be some other consequence of this. I didn't increase the
buffer so it is getting truncated, but I don't see it.

I'm just using strncpy instead of strcpy to make sure we don't write too
much. I also explicitly set the last character of the array to be a NUL
byte so it remains terminated even if it hits the limit.

It worked with my test on Ubuntu 10.04, but it was a fairly quick test.

Again, this fixes total breakage of this package in Ubuntu so this
patch, the original patch, or a similar patch should be rolled in. The
game is frustratingly unusable without a fix for this bug.


** Patch added: "tome-savefix.patch"
   http://launchpadlibrarian.net/52403339/tome-savefix.patch

-- 
ToME Crashes Randomly
https://bugs.launchpad.net/bugs/368127
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to