>>> + strncpy(info->driver_name, i2c_devices[i].i2c_driver, >>> KOBJ_NAME_LEN); >>> + strncpy(info->type, i2c_devices[i].i2c_type, I2C_NAME_SIZE); >> >> Why not just strcpy(), btw? > > Because target strings are finite length, and sources are just > pointers to > some constant strings, which one might make arbitrarily long.
So it's no problem if the name or type string gets cut short? Just checking :-) Segher _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev