Fixed string length constant bug.
authorFlorian Pose <fp@igh-essen.com>
Thu, 07 Jan 2010 17:26:02 +0100
changeset 1593 fb8337e664fb
parent 1592 0f070a230401
child 1594 2019bec460ad
Fixed string length constant bug.
lib/master.c
--- a/lib/master.c	Tue Jan 05 13:44:46 2010 +0100
+++ b/lib/master.c	Thu Jan 07 17:26:02 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;
 }