Original string has X bytes and duplicate string has X+1 bytes, therefore need to limit read to X bytes to try and stay inside your own boundaries when reading.
The csutil.c.diff changes to hyphen are already in the cvs version, and *some* of the csutil.cxx.diff changes are already in there. Some seem like some micro opts, which it doesn't hurt to add, but which chunk does the title of this patch relate to ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I should have noted the bugs before sending the initial patches, but looking at memcpy, realized afterwards you need to copy using the shorter string length and not the longer value.
The patches are based on what is currently inside the cvs, for example, now csutil.cxx was at 1.8 when I used it as a reverence, but is now at rev 1.9.,Looking at what 1.9 fixed, you could still apply this patch to it. this is where I found csutil.cxx http://hunspell.cvs.sourceforge.net/viewvc/hunspell/hunspell/src/hunspell/
csutil.c.diff
csutil.cxx.diff
The csutil.c.diff changes to hyphen are already in the cvs version, and *some* of the csutil.cxx.diff changes are already in there. Some seem like some micro opts, which it doesn't hurt to add, but which chunk does the title of this patch relate to ?
I should have noted the bugs before sending the initial patches, but looking at memcpy, realized afterwards you need to copy using the shorter string length and not the longer value.
The patches are based on what is currently inside the cvs, for example, now csutil.cxx was at 1.8 when I used it as a reverence, but is now at rev 1.9.,Looking at what 1.9 fixed, you could still apply this patch to it. this is where I found csutil.cxx
http://hunspell.cvs.sourceforge.net/viewvc/hunspell/hunspell/src/hunspell/
while csutil.c is located here:
http://hunspell.cvs.sourceforge.net/viewvc/hunspell/hyphen/