Changeset 303
- Timestamp:
- 10/27/06 10:49:09 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/launch/launch/main.c
r268 r303 385 385 case 'c': 386 386 if (strlen(optarg) != 4) errexit("creator (argument of -c) must be four characters long"); 387 OPTS.creator = *(OSTypePtr)optarg;387 OPTS.creator = htonl(*(OSTypePtr)optarg); 388 388 appSpecified = true; 389 389 break; … … 636 636 637 637 const char *utf8StringFromOSType(OSType osType) { 638 osType = ntohl(osType); 638 639 CFStringRef typeStr = CFStringCreateWithBytes(NULL, (UInt8 *)&osType, 4, CFStringGetSystemEncoding(), false); 639 640 if (typeStr == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.