Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MoreSCF bug



Hi all !

Sorry Quinn, but I think I've found a bug in the latest MoreSCF (the bug might be in the older ones too, I haven't checked...).

In the function SubstituteKeywordsInUserVisibleName (from MoreSCFPortScanner.c), in the first paragraph "BSD Name", you've written :

MoreAssertQ( CFDictionnaryGetValue(interfaceInfo, CFSTR("kIOBSDNameKey")) != nil );
CFStringReplace( result, foundRange, CFDictionnaryGetValue(interfaceInfo, kIOBSDNameKey));

There are two mistakes.
kIOBSDNameKey is defined as "BSD Name"

thus the first line should be :
MoreAssertQ( CFDictionnaryGetValue(interfaceInfo, CFSTR(kIOBSDNameKey)) != nil );

and the second one :
CFStringReplace( result, foundRange, CFDictionnaryGetValue(interfaceInfo, CFSTR(kIOBSDNameKey)));

Hope this helps
Jirome
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.