Skip to content

Commit

Permalink
Use absolute length.
Browse files Browse the repository at this point in the history
  • Loading branch information
emsquared committed Aug 11, 2012
1 parent 9c42805 commit 84bd6f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<key>TXBundleBuildCodeName</key>
<string>Turtle Soup</string>
<key>TXBundleBuildNumber</key>
<string>12341</string>
<string>12344</string>
<key>TXBundleBuildReference</key>
<string>2.1.1p3-298-g89733a4-stdbuild</string>
<string>2.1.1p3-304-g9c42805-stdbuild</string>
</dict>
</plist>
3 changes: 2 additions & 1 deletion Resources/Plugins/System Profiler/TPI_SP_SysInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 84bd6f4

Please sign in to comment.