Daniel Randall

Results 4 issues of Daniel Randall

From SMCWrapper.h: ``` typedef struct SMCKeyData_vers_t { char major; char minor; char build; char reserved[1]; UInt16 release; } SMCKeyData_vers_t; typedef struct { UInt16 version; UInt16 length; UInt32 cpuPLimit; UInt32 gpuPLimit;...

Added it to SMCWrapper.m, below the #include of smc.h: ``` #include "smc.h" #import "SMCWrapper.h" ```

Was "self = [self init];" changed it to "self = [SMCWrapper alloc];" and it works fine. ``` -(id) init { self = [SMCWrapper alloc]; ```

Was "withSize:dataType" which makes it access memory outside of bounds. I fixed by changing the it to "withSize:val.dataSize". ``` [self stringRepresentationForBytes:val.bytes withSize:val.dataSize ofType:val.dataType inBuffer:&cStr[0]]; ```