Skip to content

Commit

Permalink
Fix /sysinfo truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
balr0g committed Aug 9, 2012
1 parent b0720e9 commit 87aba4b
Showing 1 changed file with 2 additions and 1 deletion.
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()) {
NSString *s = [NSString stringWithData:(__bridge NSData *)model encoding:NSASCIIStringEncoding];
NSString *s = [NSString stringWithBytes:[(__bridge NSData *)model bytes] length:(CFDataGetLength(model)-1)
encoding:NSASCIIStringEncoding];

[gpuList addObject:s];
}
Expand Down

0 comments on commit 87aba4b

Please sign in to comment.