Mionor bugfix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/stable@25228 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2007-06-08 06:03:50 +00:00
parent eba223d03d
commit 9043b1304b
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-06-08 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSString.m: fix error getting cstring from literal containing
illegal characters.
2007-06-03 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSHTTPURLHandle.m: define MSG_DONTWAIT as zero if it's not

View file

@ -1864,6 +1864,7 @@ getCStringE_c(GSStr self, char *buffer, unsigned int maxLength,
* from internal format to unicode and then to the specified
* C string encoding.
*/
bytes = maxLength - sizeof(char);
if (GSToUnicode(&u, &l, self->_contents.c, self->_count,
internalEncoding, NSDefaultMallocZone(), 0) == NO)
{