Show
Ignore:
Timestamp:
11/26/10 11:25:32 (4 years ago)
Author:
khali
Message:

Use a 20-bit limit for the i2c bus number.
Use snprintf for the i2c dev node name.
Update copyright years.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk/tools/i2cget.c

    r5242 r5885  
    11/* 
    22    i2cget.c - A user-space program to read an I2C register. 
    3     Copyright (C) 2005-2008  Jean Delvare <khali@linux-fr.org> 
     3    Copyright (C) 2005-2010  Jean Delvare <khali@linux-fr.org> 
    44 
    55    Based on i2cset.c: 
     
    213213        } 
    214214 
    215         file = open_i2c_dev(i2cbus, filename, 0); 
     215        file = open_i2c_dev(i2cbus, filename, sizeof(filename), 0); 
    216216        if (file < 0 
    217217         || check_funcs(file, size, daddress, pec)