diff -r e7733f825982 -r f228415225b7 lib/master.c --- a/lib/master.c Thu Jan 21 11:09:31 2010 +0100 +++ b/lib/master.c Thu Jan 21 11:10:22 2010 +0100 @@ -156,7 +156,7 @@ slave_info->error_flag = data.error_flag; slave_info->sync_count = data.sync_count; slave_info->sdo_count = data.sdo_count; - strncpy(slave_info->name, data.name, EC_IOCTL_STRING_SIZE); + strncpy(slave_info->name, data.name, EC_MAX_STRING_LENGTH); return 0; }