lib/master.c
changeset 1777 a93fc03eeb06
parent 1611 7c49cd56f96f
child 1804 742607c464c4
--- a/lib/master.c	Tue Jan 19 19:31:55 2010 +0100
+++ b/lib/master.c	Tue Jan 19 19:33:47 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;
 }