Minor fencepost fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16958 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-06-19 08:27:51 +00:00
parent 66f2f34e60
commit ff510aaedb
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2003-06-19 Andrew Ruder <aeruder@yahoo.com>
* Source/Additions/Unicode.m: Increase size of table by one to
avoid error if all possible character encodings were supported.
Never happens ... but might conceivably do so one day.
2003-06-18 Kazunobu Kuriyama <kazunobu.kuriyama@nifty.com>
* configure.ac: Add --with--ffcall-include=PATH and

View file

@ -323,7 +323,7 @@ GetAvailableEncodings()
* for iconv to support unicode.
*/
GSSetupEncodingTable();
encodings = objc_malloc(sizeof(NSStringEncoding) * encTableSize);
encodings = objc_malloc(sizeof(NSStringEncoding) * (encTableSize+1));
pos = 0;
for (i = 0; i < encTableSize; i++)
{