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:
Richard Frith-Macdonald 2004-01-10 10:00:00 +00:00
parent a11526b4f8
commit 95153106d3
2 changed files with 8 additions and 1 deletions

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];
}
}