Changeset 4229

Show
Ignore:
Timestamp:
11/10/06 10:19:48 (8 years ago)
Author:
khali
Message:

Preallocate memory for the I2C_FUNCS ioctl. This should fix ticket #2138.
It might as well be a bug in Fedora Core 3's perl, but the workaround is
cheap anyway.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4225 r4229  
    2323                          Add EPoX EP1308 detection (Hans Edgington) 
    2424                          Add Intel Core thermal sensor detection 
     25                          Preallocate memory for I2C_FUNCS ioctl (#2138) 
    2526 
    26272.10.1 (20060924) 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r4227 r4229  
    23932393{ 
    23942394  my $file = shift; 
    2395   my $funcs; 
    2396  
    2397   ioctl $file, IOCTL_I2C_FUNCS, $funcs='' or return -1; 
     2395  my $funcs = pack "L", 0; # Allocate space 
     2396 
     2397  ioctl $file, IOCTL_I2C_FUNCS, $funcs or return -1; 
    23982398  $funcs = unpack "L", $funcs; 
    23992399