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/i2cdump.c

    r5242 r5885  
    33    Copyright (C) 2002-2003  Frodo Looijaard <frodol@dds.nl>, and 
    44                             Mark D. Studebaker <mdsxyz123@yahoo.com> 
    5     Copyright (C) 2004-2008  Jean Delvare <khali@linux-fr.org> 
     5    Copyright (C) 2004-2010  Jean Delvare <khali@linux-fr.org> 
    66 
    77    This program is free software; you can redistribute it and/or modify 
     
    260260        } 
    261261 
    262         file = open_i2c_dev(i2cbus, filename, 0); 
     262        file = open_i2c_dev(i2cbus, filename, sizeof(filename), 0); 
    263263        if (file < 0 
    264264         || check_funcs(file, size, pec)