a2310808f1
stringWithCString as well as the casting issue between NSInteger and %d. The first is solved by using stringWithUTF8String, which apparently will always give the right answer (sic). The second is fixed as suggested by Apple by casting the NSInteger (hint: which by definition is large enough to hold a pointer) to a long and use %ld in the printf. This commit was SVN r22317.