mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
785c2ed63c
commit
c46872f818
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue