Fix incorrect use of a pointer to unichar as if it was a pointer to char.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18359 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2004-01-10 10:00:00 +00:00
parent 785c2ed63c
commit c46872f818
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-01-10 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSCompatiblity.m: PString() fix erroneous use of unichar
pointer as if it was a char pointer.
2004-01-08 Alexander Malmberg <alexander@malmberg.org>
* Source/Additions/GSMiume.m: Fix bad use of NSString as C-string

View file

@ -222,7 +222,9 @@ PString(NSString *obj, GSMutableString *output)
}
else
{
sprintf(ptr, "\\%03o", *(unsigned char*)from);
unichar c = *from;
sprintf(ptr, "\\%03o", c);
ptr = &ptr[4];
}
}