From 84bd6f4c5e3ca87156331c205e8ee180ce74c8ef Mon Sep 17 00:00:00 2001 From: emsquared Date: Fri, 10 Aug 2012 21:29:55 -0400 Subject: [PATCH] Use absolute length. --- Resources/Info.plist | 4 ++-- Resources/Plugins/System Profiler/TPI_SP_SysInfo.m | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Resources/Info.plist b/Resources/Info.plist index 4524f0f514..6daccfe575 100755 --- a/Resources/Info.plist +++ b/Resources/Info.plist @@ -47,8 +47,8 @@ TXBundleBuildCodeName Turtle Soup TXBundleBuildNumber - 12341 + 12344 TXBundleBuildReference - 2.1.1p3-298-g89733a4-stdbuild + 2.1.1p3-304-g9c42805-stdbuild diff --git a/Resources/Plugins/System Profiler/TPI_SP_SysInfo.m b/Resources/Plugins/System Profiler/TPI_SP_SysInfo.m index cc4e32545c..0710d3fd56 100755 --- a/Resources/Plugins/System Profiler/TPI_SP_SysInfo.m +++ b/Resources/Plugins/System Profiler/TPI_SP_SysInfo.m @@ -509,7 +509,8 @@ + (NSString *)graphicsCardInfo if (PointerIsNotEmpty(model)) { if (CFGetTypeID(model) == CFDataGetTypeID() && CFDataGetLength(model) > 1) { - NSString *s = [NSString stringWithBytes:[(__bridge NSData *)model bytes] length:(CFDataGetLength(model)-1) + NSString *s = [NSString stringWithBytes:[(__bridge NSData *)model bytes] + length:CFDataGetLength(model) encoding:NSASCIIStringEncoding]; [gpuList addObject:s];