Rather than treating this as a C-string, get an NSData, and use its length. This...
treedca9872c199e03f2564a404a42866885b68df69a
-rw-r--r-- 1238 Adium.pch
drwxr-xr-x - Adium.xcodeproj
drwxr-xr-x - ChangeLogs
-rw-r--r-- 74405 Changes.txt
-rw-r--r-- 680 Copyright.txt
drwxr-xr-x - Frameworks
-rw-r--r-- 19970 License.txt
-rw-r--r-- 1973 Makefile
drwxr-xr-x - Other
drwxr-xr-x - Plists
drwxr-xr-x - Plugins
-rw-r--r-- 12206 ReadMe.rtf
drwxr-xr-x - Release
drwxr-xr-x - Resources
drwxr-xr-x - Source
drwxr-xr-x - Utilities
-rw-r--r-- 506 appcast.xml
-rw-r--r-- 152 test.txt